login.yaml 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. operationId: userLogin
  2. summary: Login
  3. security: []
  4. description: User login
  5. tags: [User]
  6. requestBody:
  7. content:
  8. application/json:
  9. schema:
  10. type: object
  11. required:
  12. - email
  13. - password
  14. properties:
  15. email:
  16. type: string
  17. format: email
  18. description: User email address
  19. example: john.smith@mail.com
  20. password:
  21. type: string
  22. description: User password
  23. example: password123
  24. responses:
  25. "200":
  26. description: "User logged in (always returns '{success: true}')"
  27. content:
  28. application/json:
  29. schema:
  30. type: object
  31. properties:
  32. success:
  33. type: boolean
  34. "400":
  35. $ref: "#/components/responses/400"
  36. "401":
  37. $ref: "#/components/responses/401"
  38. "500":
  39. $ref: "#/components/responses/500"