Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

swagger laravel

// Full Example

    /**
     * @OAGet(
     *      path="/projects",
     *      operationId="getProjectsList",
     *      tags={"Projects"},
     *      summary="Get list of projects",
     *      description="Returns list of projects",
     *      @OAResponse(
     *          response=200,
     *          description="Successful operation",
     *          @OAJsonContent(ref="#/components/schemas/ProjectResource")
     *       ),
     *      @OAResponse(
     *          response=401,
     *          description="Unauthenticated",
     *      ),
     *      @OAResponse(
     *          response=403,
     *          description="Forbidden"
     *      )
     *     )
     */
Source by codingdriver.com #
 
PREVIOUS NEXT
Tagged: #swagger #laravel
ADD COMMENT
Topic
Name
7+5 =