-
-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
157 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
|
||
/** | ||
* @OAS\Info( | ||
* version="1.0.0", | ||
* title="L5 OpenApi", | ||
* description="L5 Swagger OpenApi description", | ||
* @OAS\Contact( | ||
* email="[email protected]" | ||
* ), | ||
* @OAS\License( | ||
* name="Apache 2.0", | ||
* url="http://www.apache.org/licenses/LICENSE-2.0.html" | ||
* ) | ||
* ) | ||
*/ | ||
|
||
/** | ||
* @OAS\Server( | ||
* url=L5_SWAGGER_CONST_HOST, | ||
* description="L5 Swagger OpenApi dynamic host server" | ||
* ) | ||
* | ||
* @OAS\Server( | ||
* url="https://projects.dev/api/v1", | ||
* description="L5 Swagger OpenApi Server" | ||
* ) | ||
*/ | ||
|
||
/** | ||
* @OAS\Tag( | ||
* name="project", | ||
* description="Everything about your Projects", | ||
* @OAS\ExternalDocumentation( | ||
* description="Find out more", | ||
* url="http://swagger.io" | ||
* ) | ||
* ) | ||
* | ||
* @OAS\Tag( | ||
* name="user", | ||
* description="Operations about user", | ||
* @OAS\ExternalDocumentation( | ||
* description="Find out more about", | ||
* url="http://swagger.io" | ||
* ) | ||
* ) | ||
* @OAS\ExternalDocumentation( | ||
* description="Find out more about Swagger", | ||
* url="http://swagger.io" | ||
* ) | ||
*/ | ||
|
||
/** | ||
* @OAS\Get( | ||
* path="/projects", | ||
* operationId="getProjectsList", | ||
* tags={"Projects"}, | ||
* summary="Get list of projects", | ||
* description="Returns list of projects", | ||
* @OAS\Response( | ||
* response=200, | ||
* description="successful operation" | ||
* ), | ||
* @OAS\Response(response=400, description="Bad request"), | ||
* security={ | ||
* {"api_key_security_example": {}} | ||
* } | ||
* ) | ||
* | ||
* Returns list of projects | ||
*/ | ||
|
||
/** | ||
* @OAS\Get( | ||
* path="/projects/{id}", | ||
* operationId="getProjectById", | ||
* tags={"Projects"}, | ||
* summary="Get project information", | ||
* description="Returns project data", | ||
* @OAS\Parameter( | ||
* name="id", | ||
* description="Project id", | ||
* required=true, | ||
* in="path", | ||
* @OAS\Schema( | ||
* type="integer" | ||
* ) | ||
* ), | ||
* @OAS\Response( | ||
* response=200, | ||
* description="successful operation" | ||
* ), | ||
* @OAS\Response(response=400, description="Bad request"), | ||
* @OAS\Response(response=404, description="Resource Not Found"), | ||
* security={ | ||
* { | ||
* "oauth2_security_example": {"write:projects", "read:projects"} | ||
* } | ||
* }, | ||
* ) | ||
*/ |
File renamed without changes.