You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
154 lines
2.9 KiB
154 lines
2.9 KiB
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
"title": "proto/users.proto",
|
|
"version": "version not set"
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "Users"
|
|
}
|
|
],
|
|
"consumes": [
|
|
"application/json"
|
|
],
|
|
"produces": [
|
|
"application/json"
|
|
],
|
|
"paths": {},
|
|
"definitions": {
|
|
"protobufAny": {
|
|
"type": "object",
|
|
"properties": {
|
|
"@type": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"additionalProperties": {}
|
|
},
|
|
"rpcStatus": {
|
|
"type": "object",
|
|
"properties": {
|
|
"code": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"details": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"$ref": "#/definitions/protobufAny"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"usersAuthorizeResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"user": {
|
|
"$ref": "#/definitions/usersUserInfo"
|
|
},
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"$ref": "#/definitions/usersUserRole"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"usersChangePasswordResponse": {
|
|
"type": "object"
|
|
},
|
|
"usersListRolesResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"roles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"$ref": "#/definitions/usersUserRole"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"usersLoginResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"$ref": "#/definitions/usersUserToken"
|
|
}
|
|
}
|
|
},
|
|
"usersLogoutResponse": {
|
|
"type": "object"
|
|
},
|
|
"usersRegisterResponse": {
|
|
"type": "object"
|
|
},
|
|
"usersResetPasswordResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"$ref": "#/definitions/usersUserToken"
|
|
}
|
|
}
|
|
},
|
|
"usersSetRolesResponse": {
|
|
"type": "object"
|
|
},
|
|
"usersUserForm": {
|
|
"type": "object",
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"passwordAgain": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"usersUserInfo": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"uuid": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"usersUserRole": {
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"usersUserToken": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string"
|
|
},
|
|
"expires": {
|
|
"type": "string",
|
|
"format": "int64"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|