| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- operationId: userCreate
- summary: Create
- security: []
- description: New user registration
- tags: [User]
- requestBody:
- content:
- application/json:
- schema:
- type: object
- required:
- - name
- - email
- - password
- - confirm_password
- properties:
- name:
- type: string
- description: Name of new user
- example: John Smith
- email:
- type: string
- format: email
- description: Email address of new user
- example: john.smith@mail.com
- password:
- type: string
- description: Password for user
- example: password123
- confirm_password:
- type: string
- description: Confirmation password
- example: password123
- url:
- type: string
- format: url
- description: User validation. Create hidden input, empty by default. Fails if it is anything other than an empty string.
- example: ""
- responses:
- "200":
- description: "New user created (always returns '{success: true}')"
- content:
- applicaton/json:
- schema:
- type: object
- properties:
- success:
- type: boolean
- "400":
- $ref: "#/components/responses/400"
- "500":
- $ref: "#/components/responses/500"
|