-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
95 lines (88 loc) · 2.08 KB
/
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
# SPDX-FileCopyrightText: © 2020 Sebastian Davids <[email protected]>
# SPDX-License-Identifier: Apache-2.0
# https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md
openapi: 3.1.0
info:
title: sdavids-node-docker-image-slimming REST API
version: 0.0.1
description: A simple endpoint in NodeJS with Express.
license:
name: Apache-2.0
url: https://www.apache.org/licenses/LICENSE-2.0
contact:
name: Sebastian Davids
email: [email protected]
tags:
- name: API
- name: Management
components:
schemas:
User:
type: object
properties:
userId:
type: string
format: uuid
username:
type: string
email:
type: string
format: email
Liveness:
type: object
properties:
status:
type: string
enum:
- UP
- DOWN
examples:
random-user-ok:
value:
userId: d13e3ec3-cb8f-4fb1-8cf5-55175e5735f7
username: Cameron_Howe
email: [email protected]
liveness-ok:
value:
status: UP
paths:
/:
get:
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/User'
examples:
ok:
$ref: '#/components/examples/random-user-ok'
summary: Random User
description: Returns a random user.
operationId: getRandomUser
tags:
- API
/-/health/liveness:
get:
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Liveness'
examples:
ok:
$ref: '#/components/examples/liveness-ok'
summary: Liveness Probe
description: Liveness Probe
operationId: getLivenessProbe
tags:
- Management
servers:
- url: http://localhost:3000
description: local
- url: https://localhost:3000
description: local secure