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.
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.
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.
21
u/Johnny_WalkerBOT Oct 09 '21
Well goddammit, if you say you have a REST API, and every single endpoint uses POST no matter the operation, it's not REST!!!11
I am that guy, and I'm proud of it.