-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yml
47 lines (47 loc) · 939 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
---
openapi: 3.0.2
info:
title: Todo
version: 1.0.0
description: My Todo list API
contact:
url: "https://github.com/redhat-appdev-practice"
email: [email protected]
license:
name: Apache 2.0
url: "https://www.apache.org/licenses/LICENSE-2.0"
servers:
- url: "http://{domain}:{port}{base_path}"
description: "Todo API URL"
variables:
base_path:
enum:
- /
- /api/v1
default: /
domain:
enum:
- localhost
- todo
- todo.example.com
default: localhost
port:
enum:
- '443'
- '80'
- '8080'
- '7080'
default: '7080'
tags:
- name: todos
paths:
/health:
get:
operationId: getHealth
responses:
'200':
description: 'OK'
content:
text/plain:
schema:
type: string