You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@api_controller("users/", tags=["Users"])
class UserController(BaseController):
model = get_user_model()
@http_post(
path="",
response={
HTTPStatus.CREATED: UserSchema,
HTTPStatus.INTERNAL_SERVER_ERROR: ErrorSchema,
HTTPStatus.BAD_REQUEST: ErrorSchema,
},
# permissions=[AdminPermission],
summary="Create Center User",
description="This endpoint creates a new center user based on the provided data.",
url_name="create_center_user"
)
def create(self, payload: UserInSchema):
try:
The text was updated successfully, but these errors were encountered:
Elixir-MeetThoriya
changed the title
How to Write Post or Put api testcases ?
How to Write or test Post or Put api testcases ?
Oct 4, 2024
this is my controller
The text was updated successfully, but these errors were encountered: