Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/interface.py
Show First 20 Lines • Show All 775 Lines • ▼ Show 20 Lines | ) -> None: | ||||
Raises: StorageArgumentException if the origin of the visit status is unknown | Raises: StorageArgumentException if the origin of the visit status is unknown | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("origin/visit/get") | @remote_api_endpoint("origin/visit/get") | ||||
def origin_visit_get( | def origin_visit_get( | ||||
self, origin: str, last_visit: Optional[int] = None, limit: Optional[int] = None | self, | ||||
origin: str, | |||||
last_visit: Optional[int] = None, | |||||
limit: Optional[int] = None, | |||||
order: str = "asc", | |||||
) -> Iterable[Dict[str, Any]]: | ) -> Iterable[Dict[str, Any]]: | ||||
"""Retrieve all the origin's visit's information. | """Retrieve all the origin's visit's information. | ||||
Args: | Args: | ||||
origin: The visited origin | origin: The visited origin | ||||
last_visit: Starting point from which listing the next visits | last_visit: Starting point from which listing the next visits | ||||
Default to None | Default to None | ||||
limit: Number of results to return from the last visit. | limit: Number of results to return from the last visit. | ||||
Default to None | Default to None | ||||
order: Order on visit id fields to list origin visits (default to asc) | |||||
Yields: | Yields: | ||||
List of visits. | List of visits. | ||||
""" | """ | ||||
... | ... | ||||
@remote_api_endpoint("origin/visit/find_by_date") | @remote_api_endpoint("origin/visit/find_by_date") | ||||
▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines |