Skip to content

Backend Routes

Jonathan Bae edited this page Oct 1, 2019 · 3 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • POST /api/users - sign up

session

  • POST /api/session - sign in
  • DELETE /api/session - sign out

notes

  • GET /api/notes - returns preview of all notes
  • GET /api/notes/:noteId - returns note with rich text body
  • POST /api/notes - create a new note
  • PATCH /api/notes/:noteId - update an existing note
  • DELETE /api/notes/:noteId - delete a note

notebooks

  • GET /api/notebooks - returns preview of all notebooks
  • GET /api/notebooks/:notebookId - returns list of notes for associated notebook
  • POST /api/notebooks - create a new notebook
  • PATCH /api/notebooks/:notebookId - update an existing notebook
  • DELETE /api/notebooks/:notebookId - delete a notebook

tags

  • POST /api/tags - create a tag
  • DELETE /api/tags/:tagId - remove a tag

taggings

  • GET /api/taggings - return all taggings
  • POST /api/taggings - create a tagging
  • DELETE /api/taggings/:taggingId - remove a tagging

Clone this wiki locally