create.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. operationId: userCreate
  2. summary: Create
  3. security: []
  4. description: User registration
  5. tags: [User]
  6. requestBody:
  7. content:
  8. application/json:
  9. schema:
  10. type: object
  11. required:
  12. - name
  13. - email
  14. - password
  15. - confirm_password
  16. properties:
  17. name:
  18. type: string
  19. description: Name of new user
  20. example: John Smith
  21. email:
  22. type: string
  23. format: email
  24. description: Email of new user
  25. example: john.smith@mail.com
  26. password:
  27. type: string
  28. description: Password for new user
  29. example: johnsmith123
  30. confirm_password:
  31. type: string
  32. description: Confirmation of password
  33. example: johnsmith123
  34. responses:
  35. "200":
  36. description: "New user created (always returns '{success: true}')"
  37. content:
  38. application/json:
  39. schema:
  40. type: object
  41. properties:
  42. success:
  43. type: boolean
  44. "400":
  45. $ref: "#/components/responses/400"
  46. "500":
  47. $ref: "#/components/responses/500"