Answer the question
In order to leave comments, you need to log in
POST to get data?
I would like to make a more efficient API, the application is growing, and already there are about a dozen requests for different REST API endpoints only when the application is initialized. I would like to combine them all into one. at the same time, there is no desire to get off GraphQL at all.
How bad is it to use POST to get data and pass parameters in the body? I don't like the solution with query params, it's not so convenient.
Answer the question
In order to leave comments, you need to log in
How bad is it to use POST to get data and pass parameters in the body?
POST - great, especially for a dozen requests and, because this approach is already used in GraphQL, it is unambiguously correct.
I would do exactly this using a JSON container.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question