File tree Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Expand file tree Collapse file tree 3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 88
88
extensions = extensions + [collection_search_extension ]
89
89
if collection_search_extension
90
90
else extensions ,
91
- client = CoreCrudClient (
92
- post_request_model = post_request_model , # type: ignore
93
- collections_get_request_model = collections_get_request_model , # type: ignore
94
- ),
91
+ client = CoreCrudClient (post_request_model = post_request_model ), # type: ignore
95
92
response_class = ORJSONResponse ,
96
93
items_get_request_model = items_get_request_model ,
97
94
search_get_request_model = get_request_model ,
Original file line number Diff line number Diff line change 14
14
from pygeofilter .backends .cql2_json import to_cql2
15
15
from pygeofilter .parsers .cql2_text import parse as parse_cql2_text
16
16
from pypgstac .hydration import hydrate
17
- from stac_fastapi .api .models import APIRequest , EmptyRequest , JSONResponse
17
+ from stac_fastapi .api .models import JSONResponse
18
18
from stac_fastapi .types .core import AsyncBaseCoreClient , Relations
19
19
from stac_fastapi .types .errors import InvalidQueryParameter , NotFoundError
20
20
from stac_fastapi .types .requests import get_base_url
39
39
class CoreCrudClient (AsyncBaseCoreClient ):
40
40
"""Client for core endpoints defined by stac."""
41
41
42
- collections_get_request_model : APIRequest = attr .ib (default = EmptyRequest )
43
-
44
42
async def all_collections ( # noqa: C901
45
43
self ,
46
44
request : Request ,
Original file line number Diff line number Diff line change @@ -155,10 +155,7 @@ def api_client(request, database):
155
155
api = StacApi (
156
156
settings = api_settings ,
157
157
extensions = extensions + [collection_search_extension ],
158
- client = CoreCrudClient (
159
- post_request_model = search_post_request_model ,
160
- collections_get_request_model = collections_get_request_model ,
161
- ),
158
+ client = CoreCrudClient (post_request_model = search_post_request_model ),
162
159
items_get_request_model = items_get_request_model ,
163
160
search_get_request_model = search_get_request_model ,
164
161
search_post_request_model = search_post_request_model ,
You can’t perform that action at this time.
0 commit comments