Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. openapi: 3.0.0
  2. info:
  3. description: |
  4. version: "0.0.1"
  5. title: Swagger Petstore
  6. tags:
  7. - name: user
  8. description: User operations
  9. - name: auth
  10. description: Authentication operations
  11. - name: post
  12. description: Posts operations
  13. - name: tag
  14. description: Tag operations
  15. - name: category
  16. description: Category operations
  17. - name: comment
  18. description: Comment operations
  19.  
  20. paths:
  21. '/auth/register':
  22. post:
  23. tags:
  24. - auth
  25. summary: User registration
  26. operationId: register
  27. responses:
  28. '200':
  29. description: Successful registration
  30. '409':
  31. description: User with same mail or username exist
  32. '/auth/login':
  33. post:
  34. tags:
  35. - auth
  36. summary: Login user to system
  37. operationId: login
  38. responses:
  39. '200':
  40. description: Successful login
  41. '401':
  42. description: Email and password does not match
  43. '404':
  44. description: User does not exist
  45. '/auth/logout':
  46. post:
  47. tags:
  48. - auth
  49. summary: Logout user to system
  50. operationId: logout
  51. responses:
  52. '200':
  53. description: Successful logout
  54. '400':
  55. description: No one is logged in
  56. '/auth/resendVerification/{email}':
  57. get:
  58. tags:
  59. - auth
  60. summary: Resend verification mail
  61. operationId: resend
  62. responses:
  63. '200':
  64. description: Mail succesfully send
  65. '404':
  66. description: User does not exist
  67. '409':
  68. description: User already verified
  69. '/auth/verify/{link}':
  70. post:
  71. tags:
  72. - auth
  73. summary: Verification user mail
  74. operationId: verify
  75. responses:
  76. '200':
  77. description: Mail succesfully verified
  78. '404':
  79. description: Verification link does not exist
  80. '/auth/requestPasswordChange':
  81. post:
  82. tags:
  83. - auth
  84. summary: Request password change
  85. operationId: requestPassChange
  86. responses:
  87. '200':
  88. description: Succesful request
  89. '401':
  90. description: User is not logged in
  91. '/auth/resetPass':
  92. post:
  93. tags:
  94. - auth
  95. summary: Change password
  96. operationId: resetPassword
  97. responses:
  98. '200':
  99. description: Succesful password change
  100. '401':
  101. description: User is not logged in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement