Home > other >  add some Parameter to all swagger request in l5-swagger
add some Parameter to all swagger request in l5-swagger

Time:02-10

I have some Parameters that I should write for every swagger request Annotations. for example :

 *      @OA\Parameter(
 *          name="Content-Type",
 *          in="header",
 *          required=true,
 *          example="application/json",
 *          @OA\Schema(
 *              type="string"
 *          )
 *      ),

is there any way that I write these Parameters somewhere else and add them to all swagger annotations?

CodePudding user response:

  •  Tags:  
  • Related