Skip to content

backend routes

imshentastic edited this page Dec 5, 2019 · 1 revision

Backend Routes


HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns current user's information, including full name and email
  • POST /api/users - create user account

session

  • POST /api/session - log into account
  • DELETE /api/session - log out of account

notes

  • GET /api/notes - returns all notes (filtered by specified params)
  • GET /api/notes/:id - returns specified note
  • POST /api/notes - creates a new note
  • PATCH /api/notes/:id - edits a specified note
  • DELETE /api/notes/:id - deletes a specified note Note: Optional for a note to have a parent notebook

notebooks

  • GET /api/notebooks - returns all notebooks (filtered by specified params)
  • GET /api/notebooks/:id - returns specified notebook
  • POST /api/notebooks - creates a new notebook
  • PATCH /api/notebooks/:id - edits a specified notebook
  • DELETE /api/notebooks/:id - deletes a specified notebook

tags

  • GET /api/tags - returns all tags (filtered by specified params)
  • GET /api/tags/:id - returns specified tag
  • POST /api/tags - creates a new tag
  • PATCH /api/tags/:id - edits a specified tag
  • DELETE /api/tags/:id - deletes a specified tag

Clone this wiki locally