Skip to content

Commit

Permalink
Update API endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
bherr2 committed Oct 18, 2023
1 parent b851765 commit 20f3cb3
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Changelog for the Human Reference Atlas (HRA) User Interfaces
### Added in 3.3.0

* Added support for the latest CCF Ontology v1.9.0 which adds Placenta, Spinal Cord, new Landmarks for reference organs, and a host of data updates.
* Added a SPARQL route to the CCF-API for flexible querying of the Ontology and linked data. See the [/v1/sparql docs](https://ccf-api.hubmapconsortium.org/#/operations/sparql) for more information.
* Added a SPARQL route to the CCF-API for flexible querying of the Ontology and linked data. See the [/v1/sparql docs](https://apps.humanatlas.io/hra-api/#/operations/sparql) for more information.
* Clean up and bug fixes

## 3.2.0 - 2022-04-14
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ This repository is a [monorepo](https://en.wikipedia.org/wiki/Monorepo) (multipl
* Production: <https://hubmapconsortium.github.io/ccf-ui/organ-info/>
* Staging: <https://hubmap-ccf-ui.netlify.app/organ-info/>
* CCF API
* Production: <https://ccf-api.hubmapconsortium.org>
* Staging: <https://r5i95k35v5.us-east-2.awsapprunner.com>
* Production: <https://apps.humanatlas.io/hra-api>
* Staging: <https://apps.humanatlas.io/hra-api--staging>
* OpenAPI Specification: [ccf-api-spec.yaml](ccf-api-spec.yaml)
* CCF API Client Libraries:
* JavaScript: ![npm (scoped)](https://img.shields.io/npm/v/@ccf-openapi/js-client) [@ccf-openapi/js-client](https://www.npmjs.com/package/@ccf-openapi/js-client)
Expand Down
10 changes: 5 additions & 5 deletions ccf-api-spec.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
openapi: "3.0.3"
info:
title: CCF-API
title: HRA-API
description: |
This API provides programmatic access to data registered to the Human Reference Atlas (HRA).
See the [HuBMAP HRA Portal](https://humanatlas.io/) for details.
version: 1.0.0
servers:
- description: CCF-API
url: /v1
- description: HRA-API
url: ./v1
- description: Production Server (backup)
url: https://ccf-api.hubmapconsortium.org/v1
url: https://apps.humanatlas.io/hra-api/v1
- description: Staging Server
url: https://r5i95k35v5.us-east-2.awsapprunner.com/v1
url: https://apps.humanatlas.io/hra-api--staging/v1

x-preprocessor:
description: |
Expand Down
10 changes: 5 additions & 5 deletions ccf-api-usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@
"<a id='config'></a>\n",
"### Configuration\n",
"ccf-openapi can fetch data from \n",
"> CCF-API: https://ccf-api.hubmapconsortium.org/v1 <br> \n",
"> Staging Server: https://r5i95k35v5.us-east-2.awsapprunner.com/v1 <br>\n",
"> HRA-API: https://apps.humanatlas.io/hra-api/v1 <br> \n",
"> Staging Server: https://apps.humanatlas.io/hra-api--staging/v1 <br>\n",
"> You could also use any other instance that you decide to host our code on\n",
"\n",
"You can get more information about our APIs [here](https://ccf-api.hubmapconsortium.org/#/).\n",
"You can get more information about our APIs [here](https://apps.humanatlas.io/hra-api/#/).\n",
"\n",
"You'll need to point the host in the configuration to one of the links: "
]
Expand All @@ -158,7 +158,7 @@
"outputs": [],
"source": [
"configuration = ccf_openapi_client.Configuration(\n",
" host = \"https://ccf-api.hubmapconsortium.org/v1\"\n",
" host = \"https://apps.humanatlas.io/hra-api/v1\"\n",
")"
]
},
Expand Down Expand Up @@ -509,7 +509,7 @@
"***\n",
"<a id='spatial_entity'></a>\n",
"#### Given a SpatialEntity already placed relative to a reference SpatialEntity retrieve a new direct SpatialPlacement to the given SpatialEntity IRI\n",
"More Info : https://ccf-api.hubmapconsortium.org/#/operations/get-spatial-placement\n",
"More Info : https://apps.humanatlas.io/hra-api/#/operations/get-spatial-placement\n",
"<pre>\n",
"Accepted Parameters:\n",
" get_spatial_placement_request = {\n",
Expand Down
4 changes: 2 additions & 2 deletions ccf-api-usecase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "a398796e",
"metadata": {},
"source": [
"### CCF API UseCase Documentation\n",
"### HRA API UseCase Documentation\n",
"\n",
"[Click here](https://github.com/hubmapconsortium/ccf-ui/blob/main/ccf-api-usage.ipynb) to view the installation and general documentation for ccf-api python module.\n",
"\n",
Expand Down Expand Up @@ -71,7 +71,7 @@
"source": [
"\n",
"configuration = ccf_openapi_client.Configuration(\n",
" host = \"https://r5i95k35v5.us-east-2.awsapprunner.com/v1\"\n",
" host = \"https://apps.humanatlas.io/hra-api--staging/v1\"\n",
")\n",
"api_client = ccf_openapi_client.ApiClient(configuration)\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@1/assets/kpmp/data/rui_locations.jsonld',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@1/assets/kpmp/data/rui_locations.jsonld',
Expand Down
2 changes: 1 addition & 1 deletion projects/ccf-body-ui-wc/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@1/assets/kpmp/data/rui_locations.jsonld',
Expand Down
4 changes: 2 additions & 2 deletions projects/ccf-eui/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'assets/kpmp/data/rui_locations.jsonld',
Expand All @@ -23,7 +23,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api/v1'
},
customization: {
theme: 'hubmap',
Expand Down
4 changes: 2 additions & 2 deletions projects/ccf-eui/src/environments/environment.staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api--staging/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'assets/kpmp/data/rui_locations.jsonld',
Expand All @@ -23,7 +23,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api--staging/v1'
},
customization: {
theme: 'hubmap',
Expand Down
4 changes: 2 additions & 2 deletions projects/ccf-eui/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1'
// remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api--staging/v1'
// remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api/v1'
// remoteApiEndpoint: 'http://localhost:8080/v1'
},
customization: {
Expand Down
2 changes: 1 addition & 1 deletion projects/ccf-eui/src/webcomponent-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!--
<ccf-eui
use-remote-api="true"
remote-api-endpoint="https://ccf-api.hubmapconsortium.org/v1"
remote-api-endpoint="https://apps.humanatlas.io/hra-api/v1"
>
</ccf-eui>
-->
Expand Down
4 changes: 2 additions & 2 deletions projects/ccf-organ-info/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@gh-pages/assets/kpmp/data/rui_locations.jsonld',
Expand All @@ -22,7 +22,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api/v1'
},
googleAnalyticsToken: window.location.hostname === 'portal.hubmapconsortium.org' ? 'G-1WRJHN9FM6' : 'G-J9HWV9QPJ4'
};
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api--staging/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@staging/assets/kpmp/data/rui_locations.jsonld',
Expand All @@ -22,7 +22,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://r5i95k35v5.us-east-2.awsapprunner.com/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api--staging/v1'
},
googleAnalyticsToken: 'G-ERNVZ1Q4KE'
};
4 changes: 2 additions & 2 deletions projects/ccf-organ-info/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const environment = {
'https://portal.test.hubmapconsortium.org'
],
dbOptions: {
ccfOwlUrl: 'https://ccf-api.hubmapconsortium.org/v1/ccf.owl.n3store.json',
ccfOwlUrl: 'https://apps.humanatlas.io/hra-api/v1/ccf.owl.n3store.json',
ccfContextUrl: 'https://hubmapconsortium.github.io/ccf-ontology/ccf-context.jsonld',
dataSources: [
'https://cdn.jsdelivr.net/gh/hubmapconsortium/ccf-ui@gh-pages/assets/kpmp/data/rui_locations.jsonld',
Expand All @@ -24,7 +24,7 @@ export const environment = {
hubmapToken: localStorage.getItem('HUBMAP_TOKEN') ?? '',

useRemoteApi: false,
remoteApiEndpoint: 'https://ccf-api.hubmapconsortium.org/v1'
remoteApiEndpoint: 'https://apps.humanatlas.io/hra-api/v1'
},
googleAnalyticsToken: 'G-B3DT7XPMRT'
};
Expand Down

0 comments on commit 20f3cb3

Please sign in to comment.