Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Use eve_swagger.get_swagger_blueprint #47

Merged
merged 2 commits into from
Dec 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- run:
name: Install dependencies
command: |
pip install --upgrade pip
pip install docker-compose
pip install requests
- run:
Expand Down
3 changes: 2 additions & 1 deletion dockereve-master/eve-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from eve import Eve
from eve.auth import TokenAuth
from eve_swagger import swagger
from eve_swagger import get_swagger_blueprint
from settings import settings

API_TOKEN = os.environ.get("API_TOKEN")
Expand All @@ -18,6 +18,7 @@ def check_auth(self, token, allowed_roles, resource, method):


app = Eve(settings=settings, auth=TokenAuth)
swagger = get_swagger_blueprint()
app.register_blueprint(swagger, url_prefix='/docs/api')
app.add_url_rule('/docs/api', 'eve_swagger.index')

Expand Down
2 changes: 1 addition & 1 deletion dockereve-master/eve-app/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gunicorn
eve
eve-swagger
eve-swagger>=0.1