Skip to content

Commit

Permalink
Merge pull request #26 from chrisfilo/enh/versioning
Browse files Browse the repository at this point in the history
versioning and other stuff
  • Loading branch information
chrisgorgo authored Jun 2, 2017
2 parents 7062626 + c705d8e commit b97c6fa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dockereve-master/eve-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def check_auth(self, token, allowed_roles, resource, method):
# required. See http://swagger.io/specification/#infoObject for details.
app.config['SWAGGER_INFO'] = {
'title': 'MRIQC Web API',
'version': '0.1',
'version': 'v1',
'description': 'MRI Quality Control Metrics Repository',
}

Expand Down
3 changes: 3 additions & 0 deletions dockereve-master/eve-app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@


settings = {
'URL_PREFIX': 'api',
'API_VERSION': 'v1',
'ALLOWED_FILTERS': ['*'],
'MONGO_HOST': os.environ.get('MONGODB_HOST', ''),
'MONGO_PORT': os.environ.get('MONGODB_PORT', ''),
'MONGO_DBNAME': 'mriqc_api',
Expand Down
2 changes: 1 addition & 1 deletion dockereve-master/nginx/sites-enabled/eve_project
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /docs/ {
location = / {
proxy_pass http://swagger_ui:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
4 changes: 2 additions & 2 deletions test/testGetPost.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def getRequest(post_resp, url):
authenticated_header = header.copy()
authenticated_header['Authorization'] = os.environ.get('API_TOKEN', '<secret_token>')
numOfTestData = 84
urlBold = "http://0.0.0.0:80/bold"
urlT1w = "http://0.0.0.0:80/T1w"
urlBold = "http://0.0.0.0:80/api/v1/bold"
urlT1w = "http://0.0.0.0:80/api/v1/T1w"
codeForInvalid = 422


Expand Down

0 comments on commit b97c6fa

Please sign in to comment.