Skip to content

Commit

Permalink
fix confusions between version / apiVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Feb 1, 2024
1 parent 039e2a2 commit cba86d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bento_beacon/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ def build_service_details():
s = {
"id": current_app.config["BEACON_ID"],
"name": current_app.config["BEACON_NAME"],
"apiVersion": current_app.config["BENTO_BEACON_VERSION"],
"apiVersion": current_app.config["BEACON_SPEC_VERSION"],
"environment": "dev" if current_app.config["DEBUG"] else "prod",
"organization": info["organization"]
"organization": info["organization"],
"version": current_app.config["BENTO_BEACON_VERSION"]
}

# url for beacon ui
Expand All @@ -146,23 +147,22 @@ def build_service_details():
def build_ga4gh_service_info():
# construct from beacon-format info
info = current_app.config.get("SERVICE_DETAILS", build_service_details())
beacon_spec_version = current_app.config["BEACON_SPEC_VERSION"]

s = {
"id": info["id"],
"name": info["name"],
"type": {
"artifact": "Beacon v2",
"group": "org.ga4gh",
"version": beacon_spec_version
"version": info["apiVersion"]
},
"environment": info["environment"],
"organization": {
"name": info["organization"]["name"],
"url": info["organization"]["welcomeUrl"]
},
"contactUrl": info["organization"]["contactUrl"],
"version": info["apiVersion"],
"version": info["version"],
"bento": {
"serviceKind": "beacon"
}
Expand Down

0 comments on commit cba86d3

Please sign in to comment.