Member-only story
Why POST with a Body for GET Is Bad Practice in REST
Stick to GET for retrieval and reserve POST for actions that create or process data
→ If you are not a medium member, read it here.
→ You can view my system design library here.
→ View my personal highly quality content java articles library here.
Lets Jump into the Blog..
The HTTP GET method is typically used for retrieving data, and many developers assume it doesn’t support a body. But the truth is, GET requests can include a body. According to the standard (RFC 7231 §4.3.1), GET requests can have a body, but the body has “no defined semantics.”
![](https://miro.medium.com/v2/resize:fit:700/1*LuIDEHMeNuIYTTsoxE6AAg.png)
Is it a good idea to use GET with a body? → depends on your use case.