You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ben Rothman edited this page Sep 7, 2018
·
3 revisions
API Endpoints
Users
POST api/users This allows us to create a user in the database. GET api/users/:id This allows us to retrieve a specific user from the database.
Session
POST api/session This allows us to login a user. DELETE api/session This allows us to logout a user.
Notes
GET api/notes This returns a JSON object representing all the current user's notes. GET api/notes/:id This returns a JSON object representing the specific note. POST api/notebooks This allows us to create a notebook. PATCH api/tags/:id This allows us to update a notebook. DELETE api/tags/:id This allows us to delete a notebook.
Notebooks
GET api/notebooks This returns a JSON object representing all the current user's notebooks to be rendered in the frontend client. POST api/notebooks This allows us to create a notebook. PATCH api/tags/:id This allows us to update a notebook. DELETE api/tags/:id This allows us to delete a notebook.
Tags
POST api/tags This allows us to create a tag. PATCH api/tags/:id This allows us to update a tag. DELETE api/tags/:id This allows us to delete a tag.