-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from buggregator/feature/71
Adds Swagger API docs
- Loading branch information
Showing
11 changed files
with
232 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
return [ | ||
'documentation' => [ | ||
'info' => [ | ||
'title' => 'Buggregator API', | ||
'description' => '', | ||
'version' => env('API_VERSION', '1.0.0'), | ||
], | ||
'components' => [ | ||
'schemas' => [ | ||
'ResponseMeta' => [ | ||
'type' => 'object', | ||
'properties' => [ | ||
'grid' => [ | ||
'type' => 'object', | ||
'properties' => [ | ||
// TODO: add grid meta | ||
], | ||
], | ||
], | ||
], | ||
'NotFoundError' => [ | ||
'type' => 'object', | ||
'properties' => [ | ||
'error' => [ | ||
'type' => 'string', | ||
'example' => 'Http Error - 404', | ||
], | ||
'status' => [ | ||
'type' => 'integer', | ||
'example' => 404, | ||
], | ||
], | ||
], | ||
'ValidationError' => [ | ||
'type' => 'object', | ||
'properties' => [ | ||
'message' => [ | ||
'type' => 'string', | ||
'example' => 'The given data was invalid.', | ||
], | ||
'code' => [ | ||
'type' => 'integer', | ||
'example' => 433, | ||
], | ||
'errors' => [ | ||
'type' => 'object', | ||
'properties' => [ | ||
'field' => [ | ||
'type' => 'string', | ||
], | ||
], | ||
], | ||
'context' => [ | ||
'type' => 'object', | ||
], | ||
], | ||
], | ||
], | ||
], | ||
], | ||
'paths' => [ | ||
directory('app') . 'src/Application/HTTP/Response', | ||
directory('app') . 'src/Interfaces/Http', | ||
directory('app') . 'modules/Events/Interfaces/Http', | ||
], | ||
]; |
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
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