create.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. time:
  40. type: string
  41. format: date
  42. description: User validation. Create hidden input and autofill a date on page load. Server checks time from page load.
  43. example: 2026-05-24T15:33:03.365Z
  44. responses:
  45. "200":
  46. description: "New user created (always returns '{success: true}')"
  47. content:
  48. applicaton/json:
  49. schema:
  50. type: object
  51. properties:
  52. success:
  53. type: boolean
  54. "400":
  55. $ref: "#/components/responses/400"
  56. "500":
  57. $ref: "#/components/responses/500"