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

23 lines
430 B
YAML
Raw Permalink 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
2018-09-23 16:56:29 +00:00
example: success
2018-05-22 14:20:14 +00:00
message:
type: string
2018-09-23 16:56:29 +00:00
example: Valid token
2018-05-22 14:20:14 +00:00
401:
description: Bad credentials
schema:
$ref: '#/definitions/UnauthorizedError'