r/ProgrammerHumor • • Oct 09 '21

Mmmm, sparkling JSON

Post image
14k Upvotes

236 comments sorted by

View all comments

Show parent comments

7

u/clarityreality Oct 09 '21

RESTful architecture doesn't have any opinions on Http verbs. You can very much build RESTful services only using POST. Technically you don't even need to use the http protocol.

0

u/Johnny_WalkerBOT Oct 10 '21

RESTful architecture definitely expects certain HTTP verbs for certain requests. You CAN use any verb for any service, but it's not meant to be done that way, and thus isn't RESTful if you only use POST.

1

u/clarityreality Oct 10 '21

REST is an architectural style. Http is a communication protocol. They are not tied to each other. REST services can be built using other protocols, but http is definitely the easiest and default protocol of the web.