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

23 lines
430 B
YAML
Raw Normal View History

2018-05-22 14:20:14 +00:00
Validates token passed in Authorization header
---
tags:
- Token
responses:
200:
description: Valid token
schema:
required:
- status
- message
properties:
status:
type: string
default: success
message:
type: string
default: Valid token
401:
description: Bad credentials
schema:
$ref: '#/definitions/UnauthorizedError'