-
Notifications
You must be signed in to change notification settings - Fork 2
/
openapi.yaml
113 lines (113 loc) · 2.73 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
components:
schemas:
Greeting:
description: A container storing a greeting for a specific person incl. metadata.
properties:
created_at:
description: The date/time when the message was created
format: date-time
title: Created At
type: string
isinformal:
description: Is the expression used in informal contexts?
title: Isinformal
type: boolean
language:
description: The language.
enum:
- Greek
- Croatian
- French
- German
title: Language
type: string
message:
description: The message content.
title: Message
type: string
required:
- message
- created_at
- language
- isinformal
title: Greeting
type: object
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
info:
title: FastAPI
version: 0.1.0
openapi: 3.1.0
paths:
/:
get:
description: Greet the World.
operationId: index__get
responses:
'200':
content:
application/json:
schema: {}
description: Successful Response
summary: Greet the world
/greet/{name}:
get:
description: Greet a person by name. You may choose a formal or an informal
greeting.The language for the greeting is configured in the backend.
operationId: greet_greet__name__get
parameters:
- in: path
name: name
required: true
schema:
title: Name
type: string
- in: query
name: isinformal
required: false
schema:
default: true
title: Isinformal
type: boolean
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Greeting'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Greet a person