Skip to content

Parameters in laravel seem a bit too troublesome #1614

Closed
@caixingyue

Description

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

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions