swagger-php icon indicating copy to clipboard operation
swagger-php copied to clipboard

Parameters in laravel seem a bit too troublesome

Open caixingyue opened this issue 7 months ago • 4 comments

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

caixingyue avatar Jun 30 '24 10:06 caixingyue