Fixes: UserViewSet upload_avatar docs
This commit is contained in:
parent
1a4962e116
commit
57c3b4c249
1 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,13 @@ USER_SCHEMA = {
|
|||
),
|
||||
"upload_avatar": extend_schema(
|
||||
summary=_("handle avatar upload for a user"),
|
||||
request={
|
||||
"multipart/form-data": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"avatar": {"type": "string", "format": "binary"}},
|
||||
},
|
||||
},
|
||||
responses={
|
||||
status.HTTP_200_OK: UserSerializer,
|
||||
status.HTTP_400_BAD_REQUEST: {"description": "Invalid Request"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue