-
Notifications
You must be signed in to change notification settings - Fork 3
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
Evaluating swagger-ui part of application #18
Open
iyangar
wants to merge
19
commits into
EBIvariation:master
Choose a base branch
from
iyangar:T2D-320
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
597e4f7
Evaluating swagger-ui part of application
iyangar ba9aa03
removing springfox dependancy
iyangar 0fa0b83
Enable swagger and moving spring boot v2.x
iyangar e0ee6e9
path to staging machine
iyangar 57efe95
removing swagger/springfox dependant tests
iyangar c080964
verifying with GET all
iyangar 511d941
removing spring fox links
iyangar 2019e20
verifying with logs enabled
iyangar 5ff402b
adding permission to starting /swagger-ui to all
iyangar f79e6d6
removing debug entry
iyangar 8d2574c
adding bearer security
iyangar f18a664
updaing bearer security
iyangar 75cf54e
security for each call
iyangar 86d42aa
removing webjars duplication
iyangar b5212ad
making staging profile
iyangar 82a0809
removing default as staging profile
iyangar 8579e40
evaluating multiple yaml profile
iyangar 8e359ed
add production yaml file
iyangar dc0d0bd
update to correct profile
iyangar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,3 @@ | ||
<session-config> | ||
<tracking-mode>COOKIE</tracking-mode> | ||
</session-config> |
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,10 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<body> | ||
<center> | ||
<h1> | ||
Metadata Swagger UI | ||
</h1> | ||
</center> | ||
</body> | ||
</html> |
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,256 @@ | ||
{ | ||
tskir marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"openapi": "3.0.2", | ||
"info": { | ||
"title": "AMP T2D Property registry API", | ||
"description": "Property registry API for the project AMP-T2D", | ||
"version": "1.0SNAPSHOT", | ||
"termsOfService": "www.ebi.ac.uk/terms", | ||
"contact": { | ||
"name": "Property registry API Admin", | ||
"url": "www.ebi.ac.uk", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "https://www.apache.org/license/" | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "https://www.ebi.ac.uk/ega/ampt2d/propertyreg/1.0/", | ||
"description": "Production server" | ||
} | ||
], | ||
"paths": { | ||
"/phenotypes": { | ||
"get": { | ||
"tags": [ | ||
"Phenotype Entity" | ||
], | ||
"summary": "find all phenotypes.", | ||
"description": "Get all phenotypes of Type2Diabetes.", | ||
"operationId": "GetPhenotypeEntity", | ||
"parameters": [ | ||
{ | ||
"name": "page", | ||
"in": "query", | ||
"description": "Number of pages.", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "size", | ||
"in": "query", | ||
"description": "size of page.", | ||
"schema": { | ||
"type": "string" | ||
} | ||
}, | ||
{ | ||
"name": "sort", | ||
"in": "query", | ||
"description": "Ascending or descending.", | ||
"schema": { | ||
"type": "string" | ||
} | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK, Successful response", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"title": "Model", | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "generated id of phenotype" | ||
}, | ||
"phenotypeGroup": { | ||
"type": "string", | ||
"enum": [ | ||
"ANTHROPOMETRIC", | ||
"CARDIOVASCULAR", | ||
"GLYCEMIC" | ||
], | ||
"description": "phenotype group" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "description of phenotype" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"DICHOTOMOUS", | ||
"MULTICHOTOMOUS" | ||
], | ||
"description": "description of phenotype" | ||
}, | ||
"allowedValues": { | ||
"type": "string", | ||
"description": "allowed values of phenotype" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"401": { | ||
"description": "Unauthorized" | ||
}, | ||
"403": { | ||
"description": "Forbidden" | ||
}, | ||
"404": { | ||
"description": "Not found" | ||
} | ||
} | ||
}, | ||
"post": { | ||
"tags": [ | ||
"Phenotype Entity" | ||
], | ||
"summary": "save phenotype.", | ||
"description": "Store a phenotype of Type2Diabetes.", | ||
"operationId": "PostPhenotypeEntity", | ||
"requestBody": { | ||
"description": "Store a phenotype of Type2Diabetes.", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "#/components/schemas/Phenotype" | ||
} | ||
} | ||
}, | ||
"required": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "OK, Successful operation", | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"links": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"href": { | ||
"type": "string" | ||
}, | ||
"rel": { | ||
"type": "string" | ||
}, | ||
"templated": { | ||
"type": "boolean" | ||
} | ||
} | ||
} | ||
}, | ||
"id": { | ||
"type": "string" | ||
}, | ||
"phenotypeGroup": { | ||
"type": "string", | ||
"enum": [ | ||
"ANTHROPOMETRIC", | ||
"CARDIOVASCULAR", | ||
"GLYCEMIC" | ||
] | ||
}, | ||
"description": { | ||
"type": "string" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"DICHOTOMOUS", | ||
"MULTICHOTOMOUS" | ||
] | ||
}, | ||
"allowedValues": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"description": "Created" | ||
}, | ||
"401": { | ||
"description": "Unauthorized" | ||
}, | ||
"403": { | ||
"description": "Forbidden" | ||
}, | ||
"404": { | ||
"description": "Not found" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"components": { | ||
"schemas": { | ||
"Phenotype": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string", | ||
"description": "generated id of phenotype" | ||
}, | ||
"phenotypeGroup": { | ||
"type": "string", | ||
"enum": [ | ||
"ANTHROPOMETRIC", | ||
"CARDIOVASCULAR", | ||
"GLYCEMIC" | ||
], | ||
"description": "phenotype group" | ||
}, | ||
"description": { | ||
"type": "string", | ||
"description": "description of phenotype" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"DICHOTOMOUS", | ||
"MULTICHOTOMOUS" | ||
], | ||
"description": "description of phenotype" | ||
}, | ||
"allowedValues": { | ||
"type": "string", | ||
"description": "allowed values of phenotype" | ||
} | ||
}, | ||
"xml": { | ||
"name": "Phenotype" | ||
} | ||
} | ||
}, | ||
"securitySchemes": { | ||
"keycloak_auth": { | ||
"type": "oauth2", | ||
"flows": { | ||
"authorizationCode": { | ||
"tokenUrl": "http://localhost:8080/ega/ampt2d/auth/realms/securemetadata/protocol/openid-connect/token", | ||
"authorizationUrl": "http://localhost:8080/ega/ampt2d/auth/realms/securemetadata/protocol/openid-connect/auth", | ||
"scopes": { | ||
"opened": "openid" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this? as we are manually downloading and unzip in unpack goal.