create.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. operationId: userCreate
  2. summary: Create
  3. security: []
  4. description: New 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 address of new user
  25. example: john.smith@mail.com
  26. password:
  27. type: string
  28. description: Password for user
  29. example: password123
  30. confirm_password:
  31. type: string
  32. description: Confirmation password
  33. example: password123
  34. url:
  35. type: string
  36. format: url
  37. description: User validation. Create hidden input, empty by default. Fails if it is anything other than an empty string.
  38. example: ""
  39. responses:
  40. "200":
  41. description: "New user created (always returns '{success: true}')"
  42. content:
  43. applicaton/json:
  44. schema:
  45. type: object
  46. properties:
  47. success:
  48. type: boolean
  49. "400":
  50. $ref: "#/components/responses/400"
  51. "500":
  52. $ref: "#/components/responses/500"