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

26 lines
506 B
YAML
Raw Normal View History

2018-05-07 14:13:07 +00:00
Gets a user account
2018-05-08 14:45:09 +00:00
User may only get own account. Accessing other accounts will return 403.
2018-05-07 14:13:07 +00:00
---
tags:
- Account
parameters:
2018-05-08 14:45:09 +00:00
- in: path
name: user_id
2018-05-07 14:13:07 +00:00
required: true
2018-05-08 14:45:09 +00:00
type: integer
description: Id of the user
2018-05-07 14:13:07 +00:00
responses:
2018-05-08 14:45:09 +00:00
200:
description: Success
schema:
type: object
required:
- content
2018-05-08 14:45:09 +00:00
properties:
content:
2018-05-08 14:45:09 +00:00
$ref: '#/definitions/User'
403:
description: Accessed a different account
2018-05-07 14:13:07 +00:00
schema:
$ref: '#/definitions/Error'