-
Notifications
You must be signed in to change notification settings - Fork 1
/
openapi.yml
53 lines (52 loc) · 997 Bytes
/
openapi.yml
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
openapi: 3.1.0
info:
title: hello-http
version: 0.0.0
servers:
- url: http://localhost:3000
description: Running locally
paths:
/:
get:
summary: Index page
post:
summary: Update state
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/App"
responses:
"200":
description: State updated
/readyz:
get:
summary: Get readiness
responses:
"200":
description: Ready
"503":
description: Not ready
/livez:
get:
summary: Get liveness
responses:
"200":
description: Live
"500":
description: Not live
components:
schemas:
App:
type: object
properties:
ready:
type: bool
required: true
live:
type: bool
required: true
example:
ready: false
live: true