Answers for "get l5-swagger response sample"

1

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,
     *     ),
Posted by: Guest on June-16-2021
0

get l5-swagger response sample

/**
     * @OA\Get(
     *      path="/client-request-history",
     *      operationId="getClientRequestHistory",
     *      tags={"Client Expert Planning"},
     *      summary="get client request history",
     *      description="get client request history",
     *     security={ {"bearer": {} }},
     *      @OA\Response(
     *          response=200,
     *          description="Successful operation",
     *          @OA\JsonContent(ref="#/components/schemas/BasicResource")
     *       ),
     *      @OA\Response(
     *          response=400,
     *          description="Bad Request"
     *      ),
     *      @OA\Response(
     *          response=401,
     *          description="Unauthenticated",
     *      ),
     *      @OA\Response(
     *          response=403,
     *          description="Forbidden"
     *      )
     * )
     */
Posted by: Guest on September-30-2021

Browse Popular Code Answers by Language