create.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. url:
  35. type: string
  36. format: url
  37. description: Honeypot. If it contains anything other than 'https://' then return success without creating account.
  38. example: https://
  39. time:
  40. type: string
  41. format: date
  42. description: Honeypot. Must be within 10 minutes of submission.
  43. example: 2026-05-07T22:40:54.963Z
  44. responses:
  45. "200":
  46. description: "New user created (always returns '{success: true}')"
  47. content:
  48. application/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"