43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
/:
|
|
get:
|
|
summary: Root method
|
|
description: 'Auth: none'
|
|
tags:
|
|
- /
|
|
security: []
|
|
responses:
|
|
200:
|
|
description: Server is working
|
|
content:
|
|
application/json:
|
|
schema:
|
|
properties:
|
|
status:
|
|
type: string
|
|
example: 'API server up and running!'
|
|
500:
|
|
$ref: 'api.yaml#/components/responses/500'
|
|
|
|
/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:
|
|
$ref: 'api.yaml#/components/responses/401'
|
|
500:
|
|
$ref: 'api.yaml#/components/responses/500' |