API Design · Middle · Question 70 of 75

When is POST /orders/search with a JSON body acceptable instead of GET with query parameters?

Explanation

The trade-off: POST responses aren't cached by default and the operation looks non-idempotent. Document it clearly.

Further reading

Problem with a question

API Design · Middle · question 70

Test yourself

Take the API Design · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz