|
2 | 2 |
|
3 | 3 | import re |
4 | 4 | from typing import Any, Dict, List, Optional, Set, Union |
5 | | -from urllib.parse import unquote_plus |
| 5 | +from urllib.parse import unquote_plus, urljoin |
6 | 6 |
|
7 | 7 | import attr |
8 | 8 | import orjson |
|
17 | 17 | from stac_fastapi.extensions.core.collection_search.request import ( |
18 | 18 | BaseCollectionSearchPostRequest, |
19 | 19 | ) |
20 | | -from stac_fastapi.types.core import AsyncBaseCoreClient |
| 20 | +from stac_fastapi.types.core import AsyncBaseCoreClient, Relations |
21 | 21 | from stac_fastapi.types.errors import InvalidQueryParameter, NotFoundError |
| 22 | +from stac_fastapi.types.requests import get_base_url |
22 | 23 | from stac_fastapi.types.rfc3339 import DateTimeType |
23 | 24 | from stac_fastapi.types.stac import Collection, Collections, Item, ItemCollection |
24 | | -from stac_pydantic.shared import BBox |
| 25 | +from stac_pydantic.shared import BBox, MimeTypes |
25 | 26 |
|
26 | 27 | from stac_fastapi.pgstac.config import Settings |
27 | 28 | from stac_fastapi.pgstac.models.links import ( |
@@ -111,7 +112,7 @@ async def _collection_search_base( # noqa: C901 |
111 | 112 | Returns: |
112 | 113 | All collections which match the search criteria. |
113 | 114 | """ |
114 | | - |
| 115 | + base_url = get_base_url(request) |
115 | 116 | search_request_json = search_request.model_dump_json( |
116 | 117 | exclude_none=True, by_alias=True |
117 | 118 | ) |
|
0 commit comments