When would you use a POST instead of a GET for a 'read' operation?
Last updated
Use
POSTfor reads when the query is too large for URL limits, needs a structured JSON body, or contains sensitive parameters that shouldn't be logged in URLs.Trade-off: you lose HTTP caching and the conventional safe/idempotent semantics of
GET.Signal intent with a clear path like
POST /search(alternatives likeQUERYhave limited support).