-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.json
71 lines (71 loc) · 2.23 KB
/
openapi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"openapi": "3.0.3",
"info": {
"title": "Optima API docs",
"description": "Unofficial wrapper for ERP Comarch OPTIMA.",
"version": "latest",
"contact": {
"name": "Borys Żmuda",
"email": "rudashi@gmail.com"
}
},
"paths": {
"/api/optima/ping": {
"get": {
"tags": [
"Optima"
],
"operationId": "optima.ping",
"description": "Ping optima db connection",
"responses": {
"200": {
"$ref": "#/components/responses/HealthCheckOk"
},
"500": {
"$ref": "#/components/responses/HealthCheckProblem"
}
}
}
}
},
"components": {
"responses": {
"HealthCheckOk": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string",
"default": "pong"
}
}
}
}
}
},
"HealthCheckProblem": {
"description": "Internal server error",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"default": "problem"
},
"message": {
"type": "string",
"example": "Could not connect to db"
}
}
}
}
}
}
}
}
}