forked from request-yo-racks/api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`connexion` is a framework that automagically handles HTTP requests based on OpenAPI Specification. The routes and the documentation are autogenerated. Models are being validated against the specification. * Remove all django files * Update requirements * Create function to generate and configure a connexion app * Implement a way to manage the settings similar to what was done for DRF * Fix the unit tests * Fix integration tests * Update the docker image * Fix the wheel package * Update and clean up Makefile * Update the GitHub PR template Fixes request-yo-racks#60
- Loading branch information
Showing
52 changed files
with
263 additions
and
507 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 |
---|---|---|
@@ -1,19 +1,12 @@ | ||
[run] | ||
omit = | ||
*__init__.py | ||
api/apps/api/models.py | ||
api/apps/api/serializers.py | ||
api/apps/api/tests/* | ||
api/apps/api/urls.py | ||
api/apps/api/views.py | ||
api/celery/celery.py | ||
api/celery/celery_settings.py | ||
api/celery/tests/* | ||
api/connexion_* | ||
api/controller/* | ||
api/settings/* | ||
api/static.py | ||
api/urls.py | ||
api/wsgi.py | ||
|
||
|
||
[report] | ||
fail_under = 90.0 |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,12 @@ | ||
""" | ||
Define the REST API server. | ||
This was done to help transitionning to `connexion` and may be deleted at some point in the future. | ||
To launch the server locally, use the `make local-api` command instead. | ||
""" | ||
|
||
from api.connexion_utils import create_connexion_app | ||
|
||
if __name__ == '__main__': | ||
app = create_connexion_app() | ||
app.run() |
Oops, something went wrong.