swagger-php
swagger-php copied to clipboard
Parameters in laravel seem a bit too troublesome
There is nothing wrong with the following writing, but it cannot be used in GET
#[OA\RequestBody(content: new OA\MediaType(mediaType: 'application/x-www-form-urlencoded', schema: new OA\Schema(ref: '#/components/schemas/DistrictRequest')))]
The following way of writing in the controller is not elegant enough
#[OA\QueryParameter(ref: '#/components/parameters/DistrictRequestName')]
#[OA\QueryParameter(ref: '#/components/parameters/DistrictRequestFullName')]
I want to use something similar to RequestBody
, but I can also write it differently in DistrictRequest