Skip to content

Commit d9480c1

Browse files
committed
Add bbox and datetime to ItemCollectionUri
Imported str2list function from stac_fastapi.types.search as already have dependency on it.
1 parent fbdd993 commit d9480c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stac_fastapi/api/stac_fastapi/api/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
APIRequest,
1414
BaseSearchGetRequest,
1515
BaseSearchPostRequest,
16+
str2list,
1617
)
1718

1819

@@ -123,6 +124,8 @@ class ItemCollectionUri(CollectionUri):
123124
"""Get item collection."""
124125

125126
limit: int = attr.ib(default=10)
127+
bbox: Optional[str] = attr.ib(default=None, converter=str2list)
128+
datetime: Optional[str] = attr.ib(default=None)
126129

127130

128131
class POSTTokenPagination(BaseModel):

0 commit comments

Comments
 (0)