diff --git a/src/app/api/api.py b/src/app/api/api.py index 8d779f3..489b884 100644 --- a/src/app/api/api.py +++ b/src/app/api/api.py @@ -86,6 +86,7 @@ def node_ids_for_major_collections( description=QUALITY_MATRIX_DESCRIPTION, ) async def get_quality( + *, database: Database = Depends(get_database), node_id: str = Query( default=COLLECTION_ROOT_ID, @@ -124,7 +125,7 @@ async def get_quality( description="""An unix timestamp in integer seconds since epoch yields the quality matrix at the respective date.""", ) async def get_past_quality_matrix( - timestamp: int, database: Database = Depends(get_database) + *, timestamp: int, database: Database = Depends(get_database) ): if not timestamp: raise HTTPException(status_code=400, detail="Invalid or no timestamp given") @@ -155,6 +156,7 @@ async def get_past_quality_matrix( form: The desired form of quality. This is used to query only the relevant type of data.""", ) async def get_timestamps( + *, database: Database = Depends(get_database), form: Forms = Query( default=Forms.REPLICATION_SOURCE, @@ -268,7 +270,7 @@ async def get_collection_counts( ) async def filter_collections_with_missing_attributes( *, - noderef_id: UUID = Depends(node_ids_for_major_collections), + node_id: UUID = Depends(node_ids_for_major_collections), missing_attribute: str = Path( ..., examples={ @@ -276,4 +278,4 @@ async def filter_collections_with_missing_attributes( }, ), ): - return await collections_with_missing_attributes(noderef_id, missing_attribute) + return await collections_with_missing_attributes(node_id, missing_attribute)