From 8afca6ca96c3f15807651be64b476374adeeee98 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 27 Dec 2020 16:44:18 +0200 Subject: [PATCH] kwarg items: use the same naming as django_etebase. --- etebase_fastapi/collection.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etebase_fastapi/collection.py b/etebase_fastapi/collection.py index 8475f25..102a7e0 100644 --- a/etebase_fastapi/collection.py +++ b/etebase_fastapi/collection.py @@ -321,15 +321,15 @@ def item_bulk_common(data: ItemBatchIn, user: User, stoken: t.Optional[str], uid return MsgpackResponse({}) -@collection_router.post("/{uid}/item/transaction/") +@collection_router.post("/{collection_uid}/item/transaction/") def item_transaction( - uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user) + collection_uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user) ): - item_bulk_common(data, user, stoken, uid, validate_etag=True) + item_bulk_common(data, user, stoken, collection_uid, validate_etag=True) -@collection_router.post("/{uid}/item/batch/") +@collection_router.post("/{collection_uid}/item/batch/") def item_batch( - uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user) + collection_uid: str, data: ItemBatchIn, stoken: t.Optional[str] = None, user: User = Depends(get_authenticated_user) ): - item_bulk_common(data, user, stoken, uid, validate_etag=False) + item_bulk_common(data, user, stoken, collection_uid, validate_etag=False)