Skip to content

Instantly share code, notes, and snippets.

@kylefritz
Created December 27, 2011 11:43
Show Gist options
  • Save kylefritz/1523379 to your computer and use it in GitHub Desktop.
Save kylefritz/1523379 to your computer and use it in GitHub Desktop.
rest methods reminder
Action HTTP Verb Default Url Description
Index GET [controller] Gets a collection of resources
Show GET [controller]/[id] Gets a single resource identified by id
New GET [controller]/new Gets form to a create a new resource
Create POST [controller] Creates the new resource
Edit GET [controller]/[id]/edit Gets a form to edit a resource by id
Update PUT [controller]/[id] Updates the resource identified by id
Delete GET [controller]/[id]/delete Gets a form to confirm a delete by id
Destroy DELETE [controller]/[id] Deletes the resource identified by id
@kylefritz
Copy link
Author

@nihil2501 this is the ReST route list i made for you the other day.

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