l5 swagger header sample
//this sample or:
/** @OA\Info(title="My First API", version="0.1") */
//then:
/**
* @OA\Post(
* path="/v1/api/endpoint",
* summary="My summary here",
* operationId="endpointOperationId",
* tags={"Tag"},
* @OA\Parameter(
* name="Accept-Language",
* in="header",
* description="Set language parameter by RFC2616 <https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4>",
* @OA\Schema(
* type="string"
* )
* ),
* @OA\Response(
* ref="success",
* response=200,
* description="OK"
* ),
* @OA\Response(
* response=404,
* description="Not found"
* ),
* )
or:
* @OA\Parameter(
* name="questionId",
* required=true,
* in="path",
* @OA\Schema(
* type="integer"
* ),
* example=1,
* ),