Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: openapi specification generation
* Adds CLI to generate OpenAPI spec out of docstrings. * Adds initial test to validate spec. * Adds Marshmallow validation for `/jobs` POST endpoint. Signed-off-by: Diego Rodriguez <diego.rodriguez@cern.ch>
- Loading branch information
Diego Rodriguez
committed
May 15, 2017
1 parent
dfa2e19
commit e9b7dad
Showing
12 changed files
with
386 additions
and
174 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 |
---|---|---|
|
@@ -78,3 +78,6 @@ target/ | |
|
||
# Vagrant | ||
.vagrant | ||
|
||
# OpenAPI | ||
openapi.json |
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 |
---|---|---|
@@ -1,17 +1,4 @@ | ||
REST API | ||
======== | ||
|
||
GET /jobs | ||
--------- | ||
|
||
.. autofunction:: reana_job_controller.app.get_jobs | ||
|
||
POST /jobs | ||
---------- | ||
|
||
.. autofunction:: reana_job_controller.app.create_job | ||
|
||
GET /jobs/<job_id> | ||
------------------ | ||
|
||
.. autofunction:: reana_job_controller.app.get_job | ||
.. openapi:: openapi.json |
Oops, something went wrong.