Is there any issue will rise if am going to use post method for all CRUD operations in Akka HTTP services. why we need to use separate HTTP method for CRUD operations.
Asked
Active
Viewed 33 times
-1
-
you can use any http method for anything, its to do with how the server handles the request – mast3rd3mon Jul 19 '18 at 13:20
-
Do you mean issues related to akka-http in particular or to API design in general? – Pedro Jul 20 '18 at 11:00
1 Answers
0
There will not be any "issues" (e.g. failures, exceptions, etc.) that will arise within akka-http
if you restrict all http methods to be POST
. However, it does violate the definition of RESTful services.
Also, you do give up a useful organization technique. If you organize all read paths inside of GET and all write paths inside of POST, then you can add things like access control (read-only vs. read-write) at the method level.
You therefore lose a level of abstraction for no obvious reason except simplicity.

Ramón J Romero y Vigil
- 17,373
- 7
- 77
- 125