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

23 lines
430 B
YAML

Validates token passed in Authorization header
---
tags:
- Token
responses:
200:
description: Valid token
schema:
required:
- status
- message
properties:
status:
type: string
example: success
message:
type: string
example: Valid token
401:
description: Bad credentials
schema:
$ref: '#/definitions/UnauthorizedError'