Replies: 2 comments 3 replies
-
| It's still an I-D, not a RFC yet. |
Beta Was this translation helpful? Give feedback.
2 replies
-
| As API Platform is based on the Symfony HTTP Foundation you can create your custom |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Retrieving data, especially collections, is possible today through the
GETHTTP method.Unfortunately, passing criteria is often cumbersome: everything has to rely on the query string, which has the following drawbacks:
One could be tempted to use
POSTto address these issues, but:POSTisn't considered safe: it is assumed that using this verb will alter the application statePOSTrequests are not cachable by designIntroducing the
QUERYHTTP method ✨The
QUERYverb has been standardized in the HTTP specification as of February 2024 (during the draft phrase, it was initially namedSEARCH) - and it's basically "GET- with a body" 🕺.Its goal is to:
GETdoes, but with a body (meaning properly typed json is 100% acceptable 🤩)From the spec:
Symfony recently introduced its support as of 7.4.
Would you consider supporting it out of the box in Api-Platform in a near future?
Beta Was this translation helpful? Give feedback.
All reactions