Permalink
78 lines (72 sloc) 1.73 KB
<?php
/**
* @SWG\Swagger(
* basePath="/api/v1",
* schemes={"http", "https"},
* host=L5_SWAGGER_CONST_HOST,
* @SWG\Info(
* version="1.0.0",
* title="L5 Swagger API",
* description="L5 Swagger API description",
* @SWG\Contact(
* email="darius@matulionis.lt"
* ),
* )
* )
*/
/**
* @SWG\SecurityScheme(
* securityDefinition="passport",
* type="oauth2",
* tokenUrl="/oauth/token",
* flow="password",
* scopes={}
* )
*/
/**
* @SWG\Get(
* path="/projects",
* operationId="getProjectsList",
* tags={"Projects"},
* summary="Get list of projects",
* description="Returns list of projects",
* @SWG\Response(
* response=200,
* description="successful operation"
* ),
* @SWG\Response(response=400, description="Bad request"),
* security={
* {"api_key_security_example": {}}
* }
* )
*
* Returns list of projects
*/
/**
* @SWG\Get(
* path="/projects/{id}",
* operationId="getProjectById",
* tags={"Projects"},
* summary="Get project information",
* description="Returns project data",
* @SWG\Parameter(
* name="id",
* description="Project id",
* required=true,
* type="integer",
* in="path"
* ),
* @SWG\Response(
* response=200,
* description="successful operation"
* ),
* @SWG\Response(response=400, description="Bad request"),
* @SWG\Response(response=404, description="Resource Not Found"),
* security={
* {
* "oauth2_security_example": {"write:projects", "read:projects"}
* }
* },
* )
*
*/