Skip to content
Yu-Jen Chang edited this page Mar 30, 2018 · 3 revisions

Routes

Frontend Routes

  • /login
  • /signup
  • /notes - all notes
  • /notes/new - create a note
  • /notes/:id - show a note
  • /notebooks - all notebooks
  • /notebooks/new - create a notebook
  • /notebooks/:id - show a notebook
  • /tags - all tags
  • /tags/new - create a tag
  • /tags/:id - show a tag

API Endpoints

users

  • GET /api/users
  • POST /api/users - Sign Up

session

  • POST /api/session - login
  • DELETE /api/session - logout

notes

  • GET /api/notes - index all notes
  • GET /api/notes/new - create a new note
  • GET /api/notes/:id - show a note
  • PATCH /api/notes/:id - update a note
  • DELET /api/notes/:id - remove a note

notebooks

  • GET /api/notebooks - index all notebooks
  • GET /api/notebooks/new - create a new notebook
  • GET /api/notebooks/:id - show a single notebook
  • PATCH /api/notebooks/:id - update a notebook
  • DELET /api/notebooks/:id - remove a notebook

tags

  • GET /api/tags - index all tags
  • GET /api/tags/new - create a new tag
  • GET /api/tags/:id - show a single tag
  • PATCH /api/tags/:id - update a tag
  • DELET /api/tags/:id - remove a tag

Clone this wiki locally