- 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
Created
November 17, 2013 00:51
-
-
Save clouddueling/7507533 to your computer and use it in GitHub Desktop.
REST API Style
- 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Look at this :) http://paste.laravel.com/18x0