kwarg items: use the same naming as django_etebase.

master
Tom Hacohen 4 years ago
parent aa483709c3
commit 8afca6ca96

@ -321,15 +321,15 @@ def item_bulk_common(data: ItemBatchIn, user: User, stoken: t.Optional[str], uid
return MsgpackResponse({}) return MsgpackResponse({})
@collection_router.post("/{uid}/item/transaction/") @collection_router.post("/{collection_uid}/item/transaction/")
def 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( 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)

Loading…
Cancel
Save