Archived
2
This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
definma-api/api/others.yaml

43 lines
1.0 KiB
YAML
Raw Normal View History

2020-04-21 10:53:07 +02:00
/:
get:
summary: Root method
2020-04-23 13:59:45 +02:00
description: 'Auth: none'
2020-04-21 10:53:07 +02:00
tags:
- /
security: []
responses:
200:
description: Server is working
content:
application/json:
schema:
properties:
2020-04-22 17:38:24 +02:00
status:
2020-04-21 10:53:07 +02:00
type: string
example: 'API server up and running!'
2020-04-23 13:59:45 +02:00
500:
2020-04-29 12:10:27 +02:00
$ref: 'api.yaml#/components/responses/500'
2020-04-23 13:59:45 +02:00
/authorized:
get:
summary: Checks authorization
description: 'Auth: all, levels: read, write, maintain, dev, admin'
tags:
- /
responses:
200:
description: Authorized
content:
application/json:
schema:
properties:
status:
type: string
example: 'Authorization successful'
method:
type: string
example: 'basic'
401:
2020-04-29 12:10:27 +02:00
$ref: 'api.yaml#/components/responses/401'
2020-04-21 10:53:07 +02:00
500:
2020-04-29 12:10:27 +02:00
$ref: 'api.yaml#/components/responses/500'