Skip to content

Commit

Permalink
api version and default info
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfisher-geo committed Mar 12, 2024
1 parent 23513cd commit ce01cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
post_request_model = create_post_request_model(extensions)

api = StacApi(
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi"),
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi"),
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-elasticsearch"),
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-elasticsearch"),
api_version=os.getenv("STAC_FASTAPI_VERSION", "2.1"),
settings=settings,
extensions=extensions,
client=CoreClient(
Expand Down
9 changes: 5 additions & 4 deletions stac_fastapi/opensearch/stac_fastapi/opensearch/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@
post_request_model = create_post_request_model(extensions)

api = StacApi(
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi"),
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi"),
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-opensearch"),
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-opensearch"),
api_version=os.getenv("STAC_FASTAPI_VERSION", "2.1"),
settings=settings,
extensions=extensions,
client=CoreClient(
Expand Down Expand Up @@ -96,8 +97,8 @@ def run() -> None:
raise RuntimeError("Uvicorn must be installed in order to use command")


if __name__ == "__main__":
run()
# if __name__ == "__main__":
# run()


def create_handler(app):
Expand Down

0 comments on commit ce01cc9

Please sign in to comment.