Skip to content

Commit

Permalink
chore: respond to standard DRS endpoint for service-info
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 22, 2023
1 parent 4fd3da3 commit 1cd5f18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1cd5f18

Please sign in to comment.