2018-05-07 14:13:07 +00:00
|
|
|
Creates new user account
|
|
|
|
Requires User object and creates account
|
|
|
|
or returns an error if account already exists
|
|
|
|
---
|
|
|
|
tags:
|
|
|
|
- Account
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: object
|
2018-10-08 19:50:34 +00:00
|
|
|
$ref: '#/definitions/User'
|
2018-05-07 15:17:19 +00:00
|
|
|
security: []
|
2018-05-07 14:13:07 +00:00
|
|
|
responses:
|
|
|
|
201:
|
2018-10-24 20:20:50 +00:00
|
|
|
description: Success
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
required:
|
|
|
|
- content
|
|
|
|
properties:
|
|
|
|
content:
|
|
|
|
$ref: '#/definitions/User'
|
2018-05-07 14:13:07 +00:00
|
|
|
422:
|
|
|
|
description: Account already exists
|
|
|
|
schema:
|
|
|
|
$ref: '#/definitions/Error'
|