Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

CRUD API

- TODO APPLICATION USING NODE.JS

This api is for users to create, read, update and delete todo items

To view the todo items, one must be registered or have their own todo item logged in. Todo items are available for view to every user in the database.

Todo items can only be updated and deleted by users who own them.

User Stories:

  • As a user, I want to add my todo items
  • As a user, I want to view all to do items after logging in my own.
  • As a user, I want to change my own todo items.
  • As a user, I want to ensure that my items are safe, and only I can change them.
  • As a user, I want to delete my own todo items.

How to use:

  • The server can be launched using '%npm start' into your terminal.

Screenshot 2022-11-12 at 12 49 44 PM

  • Using postman, we acces the api by using the http link.
  • You can then post items onto the server using the post function.
  • Plase note that the fields such as username, password etc.. are case sensitive and must be entered correctly for them to show them.

Screenshot 2022-11-12 at 12 55 01 PM


  • A get request only needs the fields, username and password and upon correctly entering those fields, the api should return all todos.

Screenshot 2022-11-12 at 12 57 18 PM


  • You can also enter fields for filterCat and filterStat {case sensitive}, that will perform filtering.

Screenshot 2022-11-12 at 1 00 11 PM

Screenshot 2022-11-12 at 12 59 52 PM


  • To delete a todo, copy the id of the desired todo and paste with a forward slash at the beginning onto the search bar in postman. Then select delete as the option and enter, the username and password associated with the todo.

Screenshot 2022-11-12 at 1 03 49 PM


  • To update todos, once more paste the id of the todo onto the search bar and enter in the correct username and password and the fields that you want to update. Then select the patch option from postman.

  • Before update:

Screenshot 2022-11-12 at 1 18 00 PM

  • After update:

Screenshot 2022-11-12 at 1 19 00 PM

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages