diff --git a/chord_drs/routes.py b/chord_drs/routes.py index 4e71c3b..8212d47 100644 --- a/chord_drs/routes.py +++ b/chord_drs/routes.py @@ -215,6 +215,7 @@ def build_blob_json(drs_blob: DrsBlob, inside_container: bool = False) -> DRSObj @drs_service.route("/service-info", methods=["GET"]) +@drs_service.route("/ga4gh/drs/v1/service-info", methods=["GET"]) @authz_middleware.deco_public_endpoint def service_info(): # Spec: https://github.com/ga4gh-discovery/ga4gh-service-info diff --git a/tests/test_routes.py b/tests/test_routes.py index bdd53f8..6768b1b 100644 --- a/tests/test_routes.py +++ b/tests/test_routes.py @@ -44,6 +44,10 @@ def test_service_info(client): data = res.get_json() validate(data, bento_lib.schemas.ga4gh.SERVICE_INFO_SCHEMA) + res = client.get("/ga4gh/drs/v1/service-info") + data = res.get_json() + validate(data, bento_lib.schemas.ga4gh.SERVICE_INFO_SCHEMA) + application.config["BENTO_DEBUG"] = True res = client.get("/service-info")