This repository was archived by the owner on Jun 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathurl-multi-collectionFormat.json
More file actions
135 lines (135 loc) · 3.89 KB
/
Copy pathurl-multi-collectionFormat.json
File metadata and controls
135 lines (135 loc) · 3.89 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
{
"swagger": "2.0",
"info": {
"title": "AutoRest Url Mutli Collection Format Test Service",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0"
},
"host": "localhost:3000",
"schemes": ["http"],
"produces": ["application/json"],
"consumes": ["application/json"],
"paths": {
"/queries/array/multi/string/null": {
"get": {
"operationId": "queries_ArrayStringMultiNull",
"description": "Get a null array of string using the multi-array format",
"x-ms-examples": {
"queries_ArrayStringMultiNull": {
"$ref": "./examples/queries_ArrayStringMultiNull.json"
}
},
"tags": ["query Operations"],
"parameters": [
{
"name": "arrayQuery",
"in": "query",
"description": "a null array of string using the multi-array format",
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"x-nullable": true
}
],
"responses": {
"200": {
"description": "Successfully received no query parameters"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/queries/array/multi/string/empty": {
"get": {
"operationId": "queries_ArrayStringMultiEmpty",
"description": "Get an empty array [] of string using the multi-array format",
"x-ms-examples": {
"queries_ArrayStringMultiEmpty": {
"$ref": "./examples/queries_ArrayStringMultiEmpty.json"
}
},
"tags": ["query Operations"],
"parameters": [
{
"name": "arrayQuery",
"in": "query",
"description": "an empty array [] of string using the multi-array format",
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi"
}
],
"responses": {
"200": {
"description": "Successfully received no query parameters"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/queries/array/multi/string/valid": {
"get": {
"operationId": "queries_ArrayStringMultiValid",
"description": "Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format",
"x-ms-examples": {
"queries_ArrayStringMultiValid": {
"$ref": "./examples/queries_ArrayStringMultiValid.json"
}
},
"tags": ["query Operations"],
"parameters": [
{
"name": "arrayQuery",
"in": "query",
"description": "an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the mult-array format",
"type": "array",
"items": {
"type": "string",
"x-nullable": true
},
"collectionFormat": "multi"
}
],
"responses": {
"200": {
"description": "Successfully received ?arrayQuery=ArrayQuery1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"definitions": {
"Error": {
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}