Delete endpoints do not fully support bodies. Queries used instead. Tests added. Resolves #20
This commit is contained in:
parent
e9b272811f
commit
c452c6c0d5
13 changed files with 114 additions and 57 deletions
|
|
@ -11,7 +11,7 @@ Endpoints:
|
|||
from fastapi import APIRouter
|
||||
from starlette import status
|
||||
|
||||
from src.user.schemas import UserResponse, OIDCClaims, UserDeleteUserRequest
|
||||
from src.user.schemas import UserResponse, OIDCClaims
|
||||
from src.user.dependencies import (
|
||||
user_model_claims_dependency,
|
||||
user_model_query_dependency,
|
||||
|
|
@ -92,9 +92,8 @@ async def get_user_by_id(
|
|||
)
|
||||
async def delete_user_by_id(
|
||||
db: db_dependency,
|
||||
user_model: user_model_body_dependency,
|
||||
user_model: user_model_query_dependency,
|
||||
su: super_admin_dependency,
|
||||
request_model: UserDeleteUserRequest,
|
||||
):
|
||||
"""
|
||||
Deletes the user with the provided ID from the database. This will not remove them from OIDC, and they will be automatically readded on next login.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue