Skip to content

Instantly share code, notes, and snippets.

@vertcitron
Created November 2, 2018 09:52
Show Gist options
  • Save vertcitron/3116aad205b710d81a7ef41195a4ce6d to your computer and use it in GitHub Desktop.
Save vertcitron/3116aad205b710d81a7ef41195a4ce6d to your computer and use it in GitHub Desktop.
article "Making a large scale app with vue.js (part 1)"
url method description
/user GET retrieves logged user infos
/user PUT modifies logged user infos
/user DELETE deconnects current user and deletes it
/user POST creates a new user (no need to be logged in)
/user/login POST submits user's credentials and logs in if succeeded
/user/logout POST deconnects curent user
/todos GET retrieve all todos for the current user
/todos/id GET retrieves data for a single todo
/todos/id POST creates a new todo
/todos/id PUT modifies a todo
/todos/id DELETE deletes a todo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment