Skip to content

Commit

Permalink
chore: move service description + contact url into config
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 22, 2023
1 parent 010b7bb commit 09b459e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bento_drop_box_service/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ class Config(BaseSettings):

service_id: str = str(":".join(list(SERVICE_TYPE.values())[:2]))
service_name: str = "Bento Drop Box Service"
service_data_source: Literal["local"] = "local"
service_data: str = "data/"
service_description: str = "Drop box service for a Bento platform node."
service_contact_url: str = "mailto:[email protected]"
service_url: str = "http://127.0.0.1:5000" # base URL to construct object URIs from

service_data: str = "data/"
service_data_source: Literal["local"] = "local"
traversal_limit: int = 16

bento_authz_service_url: str # Bento authorization service base URL
Expand Down
4 changes: 2 additions & 2 deletions bento_drop_box_service/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ async def service_info(config: ConfigDependency, logger: LoggerDependency) -> Re
"id": config.service_id,
"name": config.service_name,
"type": SERVICE_TYPE,
"description": "Drop box service for a Bento platform node.",
"description": config.service_description,
"organization": SERVICE_ORGANIZATION_C3G,
"contactUrl": "mailto:[email protected]",
"contactUrl": config.service_contact_url,
"version": __version__,
"bento": {
"serviceKind": BENTO_SERVICE_KIND
Expand Down

0 comments on commit 09b459e

Please sign in to comment.