Skip to content

Commit

Permalink
Merge pull request #293 from hubmapconsortium/nickakhmetov/add-ontolo…
Browse files Browse the repository at this point in the history
…gy-status

Nickakhmetov/add ontology status
  • Loading branch information
yuanzhou authored Nov 14, 2023
2 parents 19cf629 + 646ad0e commit 81adcfa
Show file tree
Hide file tree
Showing 8 changed files with 177 additions and 69 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ HTTP requests to the following APIs will be proxied to this gateway service for
And following are the APIs and UI applications that only use this gateway as reverse proxy without any authentication/authoriztion involved:

- [Antibody API](https://github.com/hubmapconsortium/antibody-api)
- [Ontology API](https://github.com/hubmapconsortium/ontology-api)
- [Ingest UI](https://github.com/hubmapconsortium/ingest-ui)
- [Portal UI](https://github.com/hubmapconsortium/portal-ui) (not for localhost build)

Expand All @@ -24,8 +23,6 @@ Different from the above use cases, the following APIs are protected by AWS API
- [Search API](https://github.com/hubmapconsortium/search-api)
- [UUID API](https://github.com/hubmapconsortium/uuid-api)
- [Workspaces API](https://github.com/hubmapconsortium/user_workspaces_server) (only the REST API part on DEV and PROD)
- [Spatial API](https://github.com/hubmapconsortium/spatial-api)
- [Files API](https://github.com/hubmapconsortium/files-api)

More details are described in the [aws-api-gateway](https://github.com/hubmapconsortium/aws-api-gateway) repository.

Expand Down Expand Up @@ -53,9 +50,9 @@ Note: the following instructions with docker commands are based on managing Dock

There are a few configurable environment variables to keep in mind:

- `COMMONS_BRANCH`: build argument only to be used during image creation when we need to use a branch of commons from github rather than the published PyPI package. Default to main branch if not set or null.
- `HOST_UID`: the user id on the host machine to be mapped to the container. Default to 1001 if not set or null.
- `HOST_GID`: the user's group id on the host machine to be mapped to the container. Default to 1001 if not set or null.
- `COMMONS_BRANCH`: build argument only to be used during image creation when we need to use a branch of commons from github rather than the published PyPI package. Default to master branch if not set or null.
- `HOST_UID`: the user id on the host machine to be mapped to the container. Default to 1000 if not set or null.
- `HOST_GID`: the user's group id on the host machine to be mapped to the container. Default to 1000 if not set or null.

We can set and verify the environment variable like below:

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.27
2.1.27
40 changes: 32 additions & 8 deletions api_endpoints.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
"auth": false
},
{
"method": "POST",
"endpoint": "/dataset/begin-extract-cell-count-from-secondary-analysis-files-async",
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"method": "POST",
"endpoint": "/dataset/begin-extract-cell-count-from-secondary-analysis-files-async",
"auth": false
},
{
Expand Down Expand Up @@ -147,7 +147,7 @@
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
},
{
"method": "PUT",
"endpoint": "/datasets/<*>/unpublish",
Expand Down Expand Up @@ -214,6 +214,14 @@
"endpoint": "/logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/datasets/components",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "POST",
"endpoint": "/file-upload",
Expand Down Expand Up @@ -260,7 +268,7 @@
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
]
},
{
"method": "PUT",
Expand Down Expand Up @@ -410,7 +418,7 @@
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
},
{
"method": "GET",
"endpoint": "/specimens/<*>",
Expand Down Expand Up @@ -505,11 +513,27 @@
},
{
"method": "POST",
"endpoint": "/datasets/components",
"endpoint": "/assaytype",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/assaytype/<*>",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "PUT",
"endpoint": "/reload-assaytypes",
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
}
],
"avr.dev.hubmapconsortium.org": [
Expand Down
26 changes: 25 additions & 1 deletion api_endpoints.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@
"endpoint": "/logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/datasets/components",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "POST",
"endpoint": "/file-upload",
Expand Down Expand Up @@ -505,11 +513,27 @@
},
{
"method": "POST",
"endpoint": "/datasets/components",
"endpoint": "/assaytype",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/assaytype/<*>",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "PUT",
"endpoint": "/reload-assaytypes",
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
}
],
"avr.hubmapconsortium.org": [
Expand Down
74 changes: 49 additions & 25 deletions api_endpoints.stage.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
"auth": false
},
{
"method": "POST",
"endpoint": "/dataset/begin-extract-cell-count-from-secondary-analysis-files-async",
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"method": "POST",
"endpoint": "/dataset/begin-extract-cell-count-from-secondary-analysis-files-async",
"auth": false
},
{
Expand Down Expand Up @@ -214,26 +214,6 @@
"endpoint": "/logout",
"auth": false
},
{
"method": "GET",
"endpoint": "/datasets/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-login",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/datasets/components",
Expand Down Expand Up @@ -288,7 +268,7 @@
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
]
},
{
"method": "PUT",
Expand Down Expand Up @@ -510,6 +490,50 @@
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/datasets/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-login",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/assaytype",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/assaytype/<*>",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "PUT",
"endpoint": "/reload-assaytypes",
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
}
]
}
74 changes: 49 additions & 25 deletions api_endpoints.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"method": "POST",
"endpoint": "/entities/file-system-rel-path",
"auth": false
},
{
"method": "POST",
"endpoint": "/entities/file-system-rel-path",
"method": "GET",
"endpoint": "/uploads/<*>/file-system-abs-path",
"auth": false
},
{
Expand Down Expand Up @@ -214,26 +214,6 @@
"endpoint": "/logout",
"auth": false
},
{
"method": "GET",
"endpoint": "/datasets/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-login",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/datasets/components",
Expand Down Expand Up @@ -288,7 +268,7 @@
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
]
},
{
"method": "PUT",
Expand Down Expand Up @@ -510,6 +490,50 @@
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/datasets/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/uploads/data-status",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-login",
"auth": false
},
{
"method": "GET",
"endpoint": "/data-ingest-board-logout",
"auth": false
},
{
"method": "POST",
"endpoint": "/assaytype",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "GET",
"endpoint": "/assaytype/<*>",
"auth": true,
"groups": [
"5777527e-ec11-11e8-ab41-0af86edb4424"
]
},
{
"method": "PUT",
"endpoint": "/reload-assaytypes",
"auth": true,
"groups": [
"89a69625-99d7-11ea-9366-0e98982705c1"
]
}
]
}
Loading

0 comments on commit 81adcfa

Please sign in to comment.