Skip to content

Instantly share code, notes, and snippets.

@alexpchin
Last active November 12, 2024 08:50
Show Gist options
  • Save alexpchin/09939db6f81d654af06b to your computer and use it in GitHub Desktop.
Save alexpchin/09939db6f81d654af06b 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
@PabloSeraf
Copy link

thanks, really helpful!

@fabianmadurai
Copy link

Bookmarked! thanks

@iancover
Copy link

iancover commented Dec 3, 2018

You are a gentleman and a scholar for posting this sir, people will tell stories about you

@Rohitrajak1807
Copy link

<3 Clean and to the point. Thanks!

@AmirNaghibi
Copy link

This is also a more complete list with explanation:

Screen Shot 2021-01-13 at 12 23 12 AM

credit: https://medium.com/@shubhangirajagrawal/the-7-restful-routes-a8e84201f206

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