Skip to content

Commit 80fdcdd

Browse files
add description in settings (#1226)
1 parent 68d1264 commit 80fdcdd

5 files changed

Lines changed: 27 additions & 16 deletions

File tree

CHANGES.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
* enable `jinja2.autoescape` for HTML/XML templates (ref: https://jinja.palletsprojects.com/en/stable/api/#autoescaping)
99
* remove python 3.9 support
1010

11+
### titiler.extension
12+
13+
* update rio-stac requirement
14+
15+
### titiler.application
16+
17+
* add `description` in `ApiSettings`
18+
19+
1120
## 0.23.1 (2025-08-27)
1221

1322
### titiler.core

deployment/aws/lambda/xarray_handler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
update_openapi(app)
4747

4848
TITILER_CONFORMS_TO = {
49-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/core",
50-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/landing-page",
51-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/oas30",
52-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/html",
53-
"http://www.opengis.net/spec/ogcapi-common-1/1.0/req/json",
49+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/core",
50+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/landing-page",
51+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/oas30",
52+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/html",
53+
"http://www.opengis.net/spec/ogcapi-common-1/1.0/conf/json",
5454
}
5555

5656

src/titiler/application/titiler/application/main.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,7 @@ def validate_access_token(access_token: str = Security(api_key_query)):
8080
title=api_settings.name,
8181
openapi_url="/api",
8282
docs_url="/api.html",
83-
description="""A modern dynamic tile server built on top of FastAPI and Rasterio/GDAL.
84-
85-
---
86-
87-
**Documentation**: <a href="https://developmentseed.org/titiler/" target="_blank">https://developmentseed.org/titiler/</a>
88-
89-
**Source Code**: <a href="https://github.com/developmentseed/titiler" target="_blank">https://github.com/developmentseed/titiler</a>
90-
91-
---
92-
""",
83+
description=api_settings.description,
9384
version=titiler_version,
9485
root_path=api_settings.root_path,
9586
dependencies=app_dependencies,

src/titiler/application/titiler/application/settings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ class ApiSettings(BaseSettings):
1010
"""FASTAPI application settings."""
1111

1212
name: str = "TiTiler"
13+
description: str = """A modern dynamic tile server built on top of FastAPI and Rasterio/GDAL.
14+
15+
---
16+
17+
**Documentation**: <a href="https://developmentseed.org/titiler/" target="_blank">https://developmentseed.org/titiler/</a>
18+
19+
**Source Code**: <a href="https://github.com/developmentseed/titiler" target="_blank">https://github.com/developmentseed/titiler</a>
20+
21+
---
22+
"""
23+
1324
cors_origins: str = "*"
1425
cors_allow_methods: str = "GET"
1526
cachecontrol: str = "public, max-age=3600"

src/titiler/extensions/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cogeo = [
4545
"rio-cogeo>=5.0,<6.0",
4646
]
4747
stac = [
48-
"rio-stac>=0.8,<0.9",
48+
"rio-stac>=0.12,<0.13",
4949
]
5050

5151
[project.urls]

0 commit comments

Comments
 (0)