Skip to content

Commit

Permalink
add response model
Browse files Browse the repository at this point in the history
  • Loading branch information
cl0ete committed Oct 29, 2024
1 parent fe12a51 commit 29994aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/admin/tenants.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ async def create_tenant(
return response


@router.delete("/{wallet_id}", summary="Delete a Tenant by wallet ID")
@router.delete("/{wallet_id}", summary="Delete a Tenant by wallet ID", status_code=204)
async def delete_tenant_by_id(
wallet_id: str,
group_id: Optional[str] = group_id_query,
admin_auth: AcaPyAuthVerified = Depends(acapy_auth_tenant_admin),
):
) -> None:
"""
Delete tenant by ID
---
Expand All @@ -253,7 +253,7 @@ async def delete_tenant_by_id(
Response body:
---
None
status_code: 204 No Content
"""
bound_logger = logger.bind(body={"wallet_id": wallet_id})
bound_logger.debug("DELETE request received: Deleting tenant by id")
Expand Down

0 comments on commit 29994aa

Please sign in to comment.