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

  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "proto/users.proto",
  5. "version": "version not set"
  6. },
  7. "tags": [
  8. {
  9. "name": "Users"
  10. }
  11. ],
  12. "consumes": [
  13. "application/json"
  14. ],
  15. "produces": [
  16. "application/json"
  17. ],
  18. "paths": {},
  19. "definitions": {
  20. "protobufAny": {
  21. "type": "object",
  22. "properties": {
  23. "@type": {
  24. "type": "string"
  25. }
  26. },
  27. "additionalProperties": {}
  28. },
  29. "rpcStatus": {
  30. "type": "object",
  31. "properties": {
  32. "code": {
  33. "type": "integer",
  34. "format": "int32"
  35. },
  36. "message": {
  37. "type": "string"
  38. },
  39. "details": {
  40. "type": "array",
  41. "items": {
  42. "type": "object",
  43. "$ref": "#/definitions/protobufAny"
  44. }
  45. }
  46. }
  47. },
  48. "usersAuthorizeResponse": {
  49. "type": "object",
  50. "properties": {
  51. "user": {
  52. "$ref": "#/definitions/usersUserInfo"
  53. },
  54. "roles": {
  55. "type": "array",
  56. "items": {
  57. "type": "object",
  58. "$ref": "#/definitions/usersUserRole"
  59. }
  60. }
  61. }
  62. },
  63. "usersChangePasswordResponse": {
  64. "type": "object"
  65. },
  66. "usersListRolesResponse": {
  67. "type": "object",
  68. "properties": {
  69. "roles": {
  70. "type": "array",
  71. "items": {
  72. "type": "object",
  73. "$ref": "#/definitions/usersUserRole"
  74. }
  75. }
  76. }
  77. },
  78. "usersLoginResponse": {
  79. "type": "object",
  80. "properties": {
  81. "token": {
  82. "$ref": "#/definitions/usersUserToken"
  83. }
  84. }
  85. },
  86. "usersLogoutResponse": {
  87. "type": "object"
  88. },
  89. "usersRegisterResponse": {
  90. "type": "object"
  91. },
  92. "usersResetPasswordResponse": {
  93. "type": "object",
  94. "properties": {
  95. "token": {
  96. "$ref": "#/definitions/usersUserToken"
  97. }
  98. }
  99. },
  100. "usersSetRolesResponse": {
  101. "type": "object"
  102. },
  103. "usersUserForm": {
  104. "type": "object",
  105. "properties": {
  106. "email": {
  107. "type": "string"
  108. },
  109. "password": {
  110. "type": "string"
  111. },
  112. "passwordAgain": {
  113. "type": "string"
  114. }
  115. }
  116. },
  117. "usersUserInfo": {
  118. "type": "object",
  119. "properties": {
  120. "id": {
  121. "type": "string",
  122. "format": "int64"
  123. },
  124. "uuid": {
  125. "type": "string"
  126. }
  127. }
  128. },
  129. "usersUserRole": {
  130. "type": "object",
  131. "properties": {
  132. "id": {
  133. "type": "string",
  134. "format": "int64"
  135. },
  136. "name": {
  137. "type": "string"
  138. }
  139. }
  140. },
  141. "usersUserToken": {
  142. "type": "object",
  143. "properties": {
  144. "token": {
  145. "type": "string"
  146. },
  147. "expires": {
  148. "type": "string",
  149. "format": "int64"
  150. }
  151. }
  152. }
  153. }
  154. }