Skip to content

Instantly share code, notes, and snippets.

@clouddueling
Created November 17, 2013 00:51
Show Gist options
  • Select an option

  • Save clouddueling/7507533 to your computer and use it in GitHub Desktop.

Select an option

Save clouddueling/7507533 to your computer and use it in GitHub Desktop.
REST API Style
  • GET request to /api/users – List all users
  • GET request to /api/users/1 – List info for user with ID of 1
  • POST request to /api/users – Create a new user
  • PUT request to /api/users/1 – Update user with ID of 1
  • DELETE request to /api/users/1 – Delete user with ID of 1
  • GET request to /api/user/list – List all users
  • GET request to /api/user/1 – List info for user with ID of 1
  • POST request to /api/user – Create a new user
  • PUT request to /api/user/1 – Update user with ID of 1
  • DELETE request to /api/user/1 – Delete user with ID of 1
@RobinMalfait

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment