forked from Azure/autorest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-baseUrl-more-options.json
108 lines (108 loc) · 2.67 KB
/
custom-baseUrl-more-options.json
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
{
"swagger": "2.0",
"info": {
"title": "AutoRest Parameterized Custom Host Test Client",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0"
},
"x-ms-parameterized-host": {
"hostTemplate": "{vault}{secret}{dnsSuffix}",
"useSchemePrefix": false,
"parameters": [
{
"name": "vault",
"description": "The vault name, e.g. https://myvault",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
},
{
"name": "secret",
"description": "Secret value.",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
},
{
"$ref": "#/parameters/dnsSuffix"
}
]
},
"produces": [ "application/json" ],
"consumes": [ "application/json" ],
"paths": {
"/customuri/{subscriptionId}/{keyName}": {
"get": {
"operationId": "paths_getEmpty",
"description": "Get a 200 to test a valid base uri",
"tags": [
"Path Operations"
],
"parameters": [
{
"name": "keyName",
"in": "path",
"required": true,
"type": "string",
"description": "The key name with value 'key1'."
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"name": "keyVersion",
"in": "query",
"required": false,
"type": "string",
"default": "v1",
"description": "The key version. Default value 'v1'."
}
],
"responses": {
"200": {
"description": "Successfully received a 200 response"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"parameters": {
"SubscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"required": true,
"type": "string",
"description": "The subscription id with value 'test12'."
},
"dnsSuffix": {
"name": "dnsSuffix",
"description": "A string value that is used as a global part of the parameterized host. Default value 'host'.",
"type": "string",
"required": false,
"default": "host",
"in": "path",
"x-ms-skip-url-encoding": true
}
},
"definitions": {
"Error": {
"properties": {
"status": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}