Skip to content

Instantly share code, notes, and snippets.

@way2datta
Last active November 21, 2018 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save way2datta/c8fc7b39396f05905f5984eff72819a0 to your computer and use it in GitHub Desktop.
Save way2datta/c8fc7b39396f05905f5984eff72819a0 to your computer and use it in GitHub Desktop.
Well formatted readable urls
HTTP POST http://localhost:3000/login
HTTP POST http://localhost:3000/authorize
HTTP POST http://localhost:3000/register
HTTP GET http://localhost:3000/users
HTTP GET http://localhost:3000/users/:id
HTTP DELETE http://localhost:3000/users/:id
HTTP PUT http://localhost:3000/users/:id
HTTP POST http://localhost:3000/users
HTTP GET http://localhost:3000/users/:id/expenses/categories
HTTP GET http://localhost:3000/users/:id/expenses/categories/:categoryId
HTTP DELETE http://localhost:3000/users/:id/expenses/categories/:categoryId
HTTP PUT http://localhost:3000/users/:id/expenses/categories/:categoryId
HTTP POST http://localhost:3000/users/:id/expenses/categories
HTTP GET http://localhost:3000/users/:id/expenses/
HTTP GET http://localhost:3000/users/:id/expenses/:expenseId
HTTP DELETE http://localhost:3000/users/:id/expenses/:expenseId
HTTP PUT http://localhost:3000/users/:id/expenses/:expenseId
HTTP POST http://localhost:3000/users/:id/expenses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment