university-final-iot-backend/app/api/resources/swagger/create_account_spec.yaml

30 lines
591 B
YAML
Raw Normal View History

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
required:
- user
properties:
user:
required:
- username
- password
- email
$ref: '#/definitions/User'
security: []
2018-05-07 14:13:07 +00:00
responses:
201:
description: Successful creation
422:
description: Account already exists
schema:
$ref: '#/definitions/Error'