Skip to content

Commit ce01cc9

Browse files
api version and default info
1 parent 23513cd commit ce01cc9

File tree

2 files changed

+8
-6
lines changed
  • stac_fastapi
    • elasticsearch/stac_fastapi/elasticsearch
    • opensearch/stac_fastapi/opensearch

2 files changed

+8
-6
lines changed

stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
post_request_model = create_post_request_model(extensions)
6363

6464
api = StacApi(
65-
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi"),
66-
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi"),
65+
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-elasticsearch"),
66+
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-elasticsearch"),
67+
api_version=os.getenv("STAC_FASTAPI_VERSION", "2.1"),
6768
settings=settings,
6869
extensions=extensions,
6970
client=CoreClient(

stac_fastapi/opensearch/stac_fastapi/opensearch/app.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@
6262
post_request_model = create_post_request_model(extensions)
6363

6464
api = StacApi(
65-
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi"),
66-
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi"),
65+
title=os.getenv("STAC_FASTAPI_TITLE", "stac-fastapi-opensearch"),
66+
description=os.getenv("STAC_FASTAPI_DESCRIPTION", "stac-fastapi-opensearch"),
67+
api_version=os.getenv("STAC_FASTAPI_VERSION", "2.1"),
6768
settings=settings,
6869
extensions=extensions,
6970
client=CoreClient(
@@ -96,8 +97,8 @@ def run() -> None:
9697
raise RuntimeError("Uvicorn must be installed in order to use command")
9798

9899

99-
if __name__ == "__main__":
100-
run()
100+
# if __name__ == "__main__":
101+
# run()
101102

102103

103104
def create_handler(app):

0 commit comments

Comments
 (0)