Skip to content

Commit de9d18b

Browse files
committed
Add bbox and datetime to ABC item_collection
Using same type signature as get_search
1 parent d9480c1 commit de9d18b

File tree

1 file changed

+14
-2
lines changed
  • stac_fastapi/types/stac_fastapi/types

1 file changed

+14
-2
lines changed

stac_fastapi/types/stac_fastapi/types/core.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,13 @@ def get_collection(self, collection_id: str, **kwargs) -> stac_types.Collection:
489489

490490
@abc.abstractmethod
491491
def item_collection(
492-
self, collection_id: str, limit: int = 10, token: str = None, **kwargs
492+
self,
493+
collection_id: str,
494+
bbox: Optional[List[NumType]] = None,
495+
datetime: Optional[Union[str, datetime]] = None,
496+
limit: int = 10,
497+
token: str = None,
498+
**kwargs,
493499
) -> stac_types.ItemCollection:
494500
"""Get all items from a specific collection.
495501
@@ -684,7 +690,13 @@ async def get_collection(
684690

685691
@abc.abstractmethod
686692
async def item_collection(
687-
self, collection_id: str, limit: int = 10, token: str = None, **kwargs
693+
self,
694+
collection_id: str,
695+
bbox: Optional[List[NumType]] = None,
696+
datetime: Optional[Union[str, datetime]] = None,
697+
limit: int = 10,
698+
token: str = None,
699+
**kwargs,
688700
) -> stac_types.ItemCollection:
689701
"""Get all items from a specific collection.
690702

0 commit comments

Comments
 (0)