Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. "paths": {
  2. "/api/auth/signin": {
  3. "post": {
  4. "tags": [
  5. "Auth"
  6. ],
  7.  
  8. "summary": "Sign-in user",
  9. "description": " Sign-in user phoneNumber",
  10. "produces":"application/json",
  11. "parameters": [
  12.  
  13. {
  14. "in":"body",
  15. "name": "Signin",
  16. "description": "Signin request body",
  17. "required": "true",
  18. "schema": {
  19. "in":"body",
  20. "type": "object",
  21. "properties": {
  22. "phoneNumber": {
  23. "type": "string"
  24. }
  25. }
  26. }
  27. }
  28. ],
  29. "responses": {
  30. "200": {
  31. "description": "Successful response object"
  32. },
  33. "400": {
  34. "description": "Bad request, check keys and values"
  35. },
  36. "500": {
  37. "description": "Internal server error"
  38. }
  39. }
  40. }
  41. },
  42.  
  43. "/api/auth/login": {
  44. "post": {
  45. "tags": [
  46. "Auth"
  47. ],
  48. "summary": "Login user",
  49. "description": "Login user with phoneNumber, verificationCode, deviceId, osType, deviceToken",
  50. "consumes": "application/x-www-form-urlencoded",
  51. "produces": "application/x-www-form-urlencoded",
  52. "parameters": [
  53. {
  54. "in": "body",
  55. "name": "Login",
  56. "description": "Login request body",
  57. "required": "true",
  58. "produces": "application/json",
  59. "schema": {
  60. "type": "object",
  61.  
  62. "properties": {
  63. "phoneNumber": {
  64. "type": "string"
  65. },
  66. "osType": {
  67. "type": "number"
  68. },
  69. "deviceId": {
  70. "type": "string"
  71. },
  72. "verificationCode": {
  73. "type": "number"
  74. }
  75. }
  76. }
  77. }
  78. ],
  79. "responses": {
  80. "200": {
  81. "description": "Successful response object"
  82. },
  83. "400": {
  84. "description": "Bad request, check keys and values"
  85. },
  86. "500": {
  87. "description": "Internal server error"
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }[![ответ Swagger**текст, выделенный жирным шрифтом**][1]][1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement