File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
stac_fastapi/elasticsearch Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
- # Requirements
1
+ # stac-fastapi-elasticsearch
2
+
3
+ ## Requirements
2
4
3
5
The Elasticsearch backend requires ** elasticsearch** .
Original file line number Diff line number Diff line change 1
1
"""FastAPI application."""
2
2
3
+ import os
4
+
3
5
from stac_fastapi .api .app import StacApi
4
6
from stac_fastapi .api .models import create_get_request_model , create_post_request_model
5
7
from stac_fastapi .core .core import (
60
62
post_request_model = create_post_request_model (extensions )
61
63
62
64
api = StacApi (
65
+ title = os .getenv ("STAC_API_TITLE" , "stac-fastapi" ),
66
+ description = os .getenv ("STAC_API_DESCRIPTION" , "stac-fastapi" ),
63
67
settings = settings ,
64
68
extensions = extensions ,
65
69
client = CoreClient (
Original file line number Diff line number Diff line change 1
- # stac-fastapi-opensearch
1
+ # stac-fastapi-opensearch
2
+
3
+ ## Requirements
4
+
5
+ The Elasticsearch backend requires ** opensearch** .
Original file line number Diff line number Diff line change 1
1
"""FastAPI application."""
2
2
3
+ import os
4
+
3
5
from stac_fastapi .api .app import StacApi
4
6
from stac_fastapi .api .models import create_get_request_model , create_post_request_model
5
7
from stac_fastapi .core .core import (
60
62
post_request_model = create_post_request_model (extensions )
61
63
62
64
api = StacApi (
65
+ title = os .getenv ("STAC_API_TITLE" , "stac-fastapi" ),
66
+ description = os .getenv ("STAC_API_DESCRIPTION" , "stac-fastapi" ),
63
67
settings = settings ,
64
68
extensions = extensions ,
65
69
client = CoreClient (
You can’t perform that action at this time.
0 commit comments