How to add URL parameters? #2485
Unanswered
sebastianstucke87
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I would like to add a
validate_only
-flag (google.aip.dev/163) to aDELETE
endpoint.DELETE
does not require a body, so this would be the final schema:DELETE /api/foo/{uuid}
DELETE /api/foo/{uuid}?validate_only=<bool>
The API Platform "Filters" seem to rely on a Docrine/ES persistence layer, which is not required (nore available) for this endpoint.
It seems I have to:
requestStack->getCurrentRequest()
), since both$uriVariables
and$context
of\ApiPlatform\State\ProcessorInterface::process
do not seem to contain any URL parameters?But this approach seems a bit odd to me.. Surely there is a better way? 🙏
Beta Was this translation helpful? Give feedback.
All reactions