Skip to content

Instantly share code, notes, and snippets.

@chiragchamoli
Forked from alexpchin/restful_routes.md
Created September 9, 2018 14:51
Show Gist options
  • Save chiragchamoli/fdb83dd640cc63d5734b192c6197f489 to your computer and use it in GitHub Desktop.
Save chiragchamoli/fdb83dd640cc63d5734b192c6197f489 to your computer and use it in GitHub Desktop.
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment