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

26 lines
506 B
YAML

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