This commit is contained in:
parent
e39d286742
commit
0b470ec9ad
4 changed files with 82 additions and 12 deletions
34
docs/docs.go
34
docs/docs.go
|
|
@ -1070,17 +1070,20 @@ const docTemplate = `{
|
|||
}
|
||||
},
|
||||
"delete": {
|
||||
"description": "Marks user as deleted by user uuid",
|
||||
"description": "Returns user data",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"User"
|
||||
],
|
||||
"summary": "Delete user",
|
||||
"summary": "Returns user data",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/user.MeDTO"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
|
|
@ -1094,6 +1097,12 @@ const docTemplate = `{
|
|||
"$ref": "#/definitions/responses.Unauthorized"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/responses.NotFound"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
|
|
@ -1377,6 +1386,15 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"responses.NotFound": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string",
|
||||
"example": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses.Unauthorized": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -1385,6 +1403,14 @@ const docTemplate = `{
|
|||
"example": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.MeDTO": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"user_uuid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue