I recently implemented an endpoint in my application that is doing a DELETE and expects a body to be sent.
{
"ids": [array,of,ids]
}
When I looked at it in LRD, I noticed it showed my expected payload as query params, which doesn't work. But if I make a call to it using Postman with the data as a body in the request, it works fine.
I haven't been able to find anyway to override thru a docblock or a configuration setting. When looking through past issues, I came across https://github.com/rakutentech/laravel-request-docs/pull/270 and it mentioned that OpenAPI discourages it and implemented an option for allowing it for OpenAPI export, but that doesn't work for the LRD interface.
While OpenAPI discourages, we should be able to force it either through config or be able to set it in a docblock.
I recently implemented an endpoint in my application that is doing a DELETE and expects a body to be sent.
When I looked at it in LRD, I noticed it showed my expected payload as query params, which doesn't work. But if I make a call to it using Postman with the data as a body in the request, it works fine.
I haven't been able to find anyway to override thru a docblock or a configuration setting. When looking through past issues, I came across https://github.com/rakutentech/laravel-request-docs/pull/270 and it mentioned that OpenAPI discourages it and implemented an option for allowing it for OpenAPI export, but that doesn't work for the LRD interface.
While OpenAPI discourages, we should be able to force it either through config or be able to set it in a docblock.