-
Notifications
You must be signed in to change notification settings - Fork 4
/
internal.openapi.json
111 lines (111 loc) · 2.64 KB
/
internal.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"openapi": "3.0.3",
"info": {
"title": "Sample Todo API",
"description": "Example of API design first approach and using golang stack (viper+echo+gorm+confluent+cleanarchitecture)",
"termsOfService": "https://console.redhat.com/api/idmsvc/v1",
"version": "0.0.1"
},
"servers": [
{
"description": "Use for Development",
"url": "/internal"
}
],
"paths": {
"/livez": {
"get": {
"description": "Probe the infrastructure is healthy and return 200 when all are healthy",
"summary": "Liveness kubernetes probe endpoint",
"operationId": "getLivez",
"responses": {
"200": {
"$ref": "#/components/responses/HealthySuccess"
},
"default": {
"$ref": "#/components/responses/HealthyFailure"
}
},
"tags": [
"healthcheck"
]
}
},
"/readyz": {
"get": {
"description": "Probe the infrastructure is ready and return 200 when all are ready",
"summary": "Readiness kubernetes probe endpoint",
"operationId": "getReadyz",
"responses": {
"200": {
"$ref": "#/components/responses/HealthySuccess"
},
"default": {
"$ref": "#/components/responses/HealthyFailure"
}
},
"tags": [
"healthcheck"
]
}
}
},
"components": {
"responses": {
"HealthyFailure": {
"description": "Response for unhealthy probe",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"HealthySuccess": {
"description": "Response for healthy probe",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SuccessProbe"
}
}
}
}
},
"schemas": {
"Error": {
"description": "Schema to define the error response",
"required": [
"code",
"message"
],
"additionalProperties": false,
"properties": {
"code": {
"type": "integer",
"format": "int32",
"example": 404
},
"message": {
"type": "string",
"example": "Not Found"
}
}
},
"SuccessProbe": {
"description": "Todo schema",
"type": "string",
"enum": [
"Ok"
]
}
}
},
"tags": [
{
"name": "healthcheck",
"description": "Healthcheck operations"
}
]
}