-
Notifications
You must be signed in to change notification settings - Fork 4
/
internal.openapi.yaml
73 lines (73 loc) · 2.4 KB
/
internal.openapi.yaml
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
---
openapi: 3.0.3
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#info-object
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