Backend Routes - saipat/Eton GitHub Wiki
HTML
GET /
StaticPagesController#root
API Endpoints
users
POST /api/users
- Sign up new users
session
POST /api/session
- Log inDLETE /api/session
- Log out
notes
GET /api/notes
- Returns a list of all notes created by the userGET /api/notes/:id
- Will return the specific note by idGET /api/tags/:tag_id/notes
- Will return notes for the specific tag_idGET /api/notebooks/:notebook_id/notes
- Will return notes for the specific notebook_idPOST /api/notes/new
- Creates a new notePATCH /api/notes/:id
- Edits the specified noteDELETE /api/notes/:id
- Deletes the specified note
notebooks
GET /api/notebooks
- Returns a list of all notebooks created by the user and the count of notesPOST /api/notebooks
- Creates a new notebookPATCH /api/notebooks/:id
- Edits the specified notebook(Rename the notebook)DELETE /api/notebooks/:id
- Deletes the specified notebook and its associated notes
tags
GET /api/tags
- Return all tags created by the user in the alphabetical order and its countDELETE /api/tags/:id
- Deletes a tag
(As users cannot edit a tag in Evernote, I am not adding the edit(PATCH) route for tags.)