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

29 lines
547 B
YAML

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
$ref: '#/definitions/User'
security: []
responses:
201:
description: Success
schema:
type: object
required:
- content
properties:
content:
$ref: '#/definitions/User'
422:
description: Account already exists
schema:
$ref: '#/definitions/Error'