File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed
stac_fastapi/extensions/stac_fastapi/extensions/core/filter Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 14
14
* Fix response model validation ([ #625 ] ( https://github.com/stac-utils/stac-fastapi/pull/625 ) )
15
15
* Use status code 201 for Item/Collection creation ([ #625 ] ( https://github.com/stac-utils/stac-fastapi/pull/625 ) )
16
16
* Replace Black with Ruff Format ([ #625 ] ( https://github.com/stac-utils/stac-fastapi/pull/625 ) )
17
+ * add ` response_class ` in the route definitions for ` FilterExtension `
17
18
18
19
## [ 2.5.5.post1] - 2024-04-25
19
20
Original file line number Diff line number Diff line change @@ -97,16 +97,30 @@ def register(self, app: FastAPI) -> None:
97
97
name = "Queryables" ,
98
98
path = "/queryables" ,
99
99
methods = ["GET" ],
100
- endpoint = create_async_endpoint (
101
- self .client .get_queryables , EmptyRequest , self .response_class
102
- ),
100
+ responses = {
101
+ 200 : {
102
+ "content" : {
103
+ "application/schema+json" : {},
104
+ },
105
+ # TODO: add output model in stac-pydantic
106
+ },
107
+ },
108
+ response_class = self .response_class ,
109
+ endpoint = create_async_endpoint (self .client .get_queryables , EmptyRequest ),
103
110
)
104
111
self .router .add_api_route (
105
112
name = "Collection Queryables" ,
106
113
path = "/collections/{collection_id}/queryables" ,
107
114
methods = ["GET" ],
108
- endpoint = create_async_endpoint (
109
- self .client .get_queryables , CollectionUri , self .response_class
110
- ),
115
+ responses = {
116
+ 200 : {
117
+ "content" : {
118
+ "application/schema+json" : {},
119
+ },
120
+ # TODO: add output model in stac-pydantic
121
+ },
122
+ },
123
+ response_class = self .response_class ,
124
+ endpoint = create_async_endpoint (self .client .get_queryables , CollectionUri ),
111
125
)
112
126
app .include_router (self .router , tags = ["Filter Extension" ])
You can’t perform that action at this time.
0 commit comments