Skip to content

Backend Routes

aaxzheng edited this page Nov 11, 2018 · 3 revisions

Backend Routes

HTML

  • GET/ StaticPagesController#root

API Endpoints

users

  • POST /api/users - Sign up for new users

session

  • POST /api/session - Log in the user
  • DELETE /api/session - Log out the user

notes

  • GET /api/notes - Returns a list of all notes written by the user
  • GET /api/notes/:id - Will return the specific note by id
  • POST /api/notes - Creates a new note
  • PATCH /api/notes/:id - Edits the current note
  • DELETE /api/notes/:id - Deletes the current note

notebooks

  • GET /api/notebooks - Returns a list of all notebooks written by the user
  • GET /api/notebooks/:id - Will return the specific notebook by id. (Displays all notes associated with the notebook)
  • POST /api/notebooks - Creates a new notebook
  • PATCH /api/notebooks/:id - Edits the current notebook title
  • DELETE /api/notebooks/:id - Deletes the specified notebook

tags

  • GET /api/tags - Return all tags made by the user (alphabetically)
  • GET /api/tags/:id - Return the specific tag (and all notes associated with it)
  • POST /api/tags - Creates a new tag
  • PATCH /api/tags/:id - Edit a tag name
  • DELETE /api/tags/:id - Deletes a tag

As I currently see, there is no way to edit or fully remove a tag in the latest version Evernote. The action of changing a tag is simply to create a new one and empty tags still show up in the Tag index. The older version of Evernote, however, has an edit and remove button next to each tag in the Tag index, so I have left the PATCH and DELETE routes here.

Clone this wiki locally