mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:19:40 +00:00
Add Server API to OpenAPI
This commit is contained in:
parent
d7e810fc2f
commit
31df862c32
2 changed files with 34 additions and 0 deletions
30
docs/controllers/ServerController.yaml
Normal file
30
docs/controllers/ServerController.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
paths:
|
||||
/ping:
|
||||
get:
|
||||
operationId: ping
|
||||
summary: Ping the server
|
||||
description: This endpoint is a simple check to see if the server is operating and responding with JSON correctly.
|
||||
tags:
|
||||
- Server
|
||||
responses:
|
||||
200:
|
||||
description: ping OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
success:
|
||||
type: boolean
|
||||
example: true
|
||||
/healthcheck:
|
||||
get:
|
||||
operationId: healthcheck
|
||||
summary: Health check
|
||||
description: This endpoint is a simple check to see if the server is operating and can respond.
|
||||
tags:
|
||||
- Server
|
||||
responses:
|
||||
200:
|
||||
description: healthcheck OK
|
||||
content: {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue