This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathAnnotationVariantSwaggerGroup1.json
More file actions
142 lines (142 loc) · 3.82 KB
/
AnnotationVariantSwaggerGroup1.json
File metadata and controls
142 lines (142 loc) · 3.82 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"openapi": "3.0.1",
"info": {
"title": "Microsoft.OpenApi.CSharpAnnotations.DocumentGeneration.Tests.SampleApis",
"version": "1.0.0"
},
"servers": [
{
"url": "http://localhost:9000"
}
],
"paths": {
"/V1/samples/{id}": {
"get": {
"tags": [
"Sample V1"
],
"summary": "Sample Get 1",
"operationId": "getV1SamplesById",
"parameters": [
{
"name": "sampleHeaderParam1",
"in": "header",
"description": "Header param 1",
"schema": {
"type": "number",
"format": "float"
}
},
{
"name": "sampleHeaderParam2",
"in": "header",
"description": "Header param 2",
"schema": {
"type": "string"
}
},
{
"name": "sampleHeaderParam3",
"in": "header",
"description": "Header param 3",
"schema": {
"type": "string"
}
},
{
"name": "id",
"in": "path",
"description": "The object id",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "queryBool",
"in": "query",
"description": "Sample query boolean",
"required": true,
"schema": {
"type": "boolean"
}
}
],
"responses": {
"200": {
"description": "Sample object retrieved",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Microsoft.OpenApi.CSharpAnnotations.DocumentGeneration.Tests.Contracts.SampleObject1"
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Microsoft.OpenApi.CSharpAnnotations.DocumentGeneration.Tests.Contracts.SampleObject1": {
"required": [
"samplePropertyString3",
"samplePropertyString4",
"samplePropertyEnum",
"samplePropertyTimespan"
],
"type": "object",
"properties": {
"samplePropertyBool": {
"type": "boolean",
"description": "Gets or sets the sample property bool"
},
"samplePropertyStringInt": {
"type": "integer",
"description": "Gets or sets the sample property int",
"format": "int32"
},
"samplePropertyString1": {
"type": "string",
"description": "Gets or sets the sample property string 1"
},
"samplePropertyString2": {
"type": "string",
"description": "Gets or sets the sample property string 2"
},
"samplePropertyString3": {
"type": "string",
"description": "Gets or sets the sample property string 3"
},
"samplePropertyString4": {
"type": "string",
"description": "Gets or sets the sample property string 4"
},
"samplePropertyEnum": {
"enum": [
"SampleEnumValue1",
"SampleEnumValue2"
],
"type": "string",
"description": "Gets or sets the sample property enum"
},
"samplePropertyTimespan": {
"type": "string",
"description": "Gets or sets the sample timespan"
}
}
}
}
}
}