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
Copy link

ghost commented May 15, 2016

This is great. Quick and to the point. Thanks

@odholden
Copy link

My students in Leeds just found this and started using it... you're officially a big deal.

Copy link

ghost commented Oct 7, 2016

This is very helpful! Thank you.

@dieguezguille
Copy link

Very helpful for a beginner. Thanks a lot!

@jprpich
Copy link

jprpich commented Jan 10, 2018

thank you!

Copy link

ghost commented Feb 22, 2018

Thanks for making it clearly

@liantony01
Copy link

Tanks

@ubaid4j
Copy link

ubaid4j commented Jun 25, 2018

Great

@SparshKat
Copy link

Thank you so much for this!

@justricky21
Copy link

This is very helpful, thanks a lot!

@paulolramos
Copy link

Thank you!

@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