From 2c622871ad7a59fe3a58c1f7ea5dbfa03a74a47a Mon Sep 17 00:00:00 2001 From: maxsibilla Date: Thu, 17 Aug 2023 10:34:06 -0400 Subject: [PATCH] Updating UUID URL --- src/instance/app.cfg.example | 2 +- src/routes/entity_CRUD/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instance/app.cfg.example b/src/instance/app.cfg.example index fb8aa154..3c515c4f 100644 --- a/src/instance/app.cfg.example +++ b/src/instance/app.cfg.example @@ -32,7 +32,7 @@ GLOBUS_CONSORTIUM_FILE_GROUP_NAME = 'hubmap' ENTITY_WEBSERVICE_URL = 'http://entity-api:8080' #Uuid-api -UUID_WEBSERVICE_URL = 'http://uuid-api:8080/uuid' +UUID_WEBSERVICE_URL = 'http://uuid-api:8080/' #Search-api SEARCH_WEBSERVICE_URL = 'https://search-api.dev.sennetconsortium.org' diff --git a/src/routes/entity_CRUD/__init__.py b/src/routes/entity_CRUD/__init__.py index 362448c5..b30068eb 100644 --- a/src/routes/entity_CRUD/__init__.py +++ b/src/routes/entity_CRUD/__init__.py @@ -685,7 +685,7 @@ def publish_datastage(identifier): if identifier is None or len(identifier) == 0: abort_bad_req('identifier parameter is required to publish a dataset') - r = requests.get(current_app.config['UUID_WEBSERVICE_URL'] + "/" + identifier, + r = requests.get(current_app.config['UUID_WEBSERVICE_URL'] + "uuid/" + identifier, headers={'Authorization': request.headers["AUTHORIZATION"]}) if r.ok is False: raise ValueError("Cannot find specimen with identifier: " + identifier)