-
Notifications
You must be signed in to change notification settings - Fork 45
/
parameterized-endpoint.json
46 lines (46 loc) · 1.12 KB
/
parameterized-endpoint.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
{
"swagger": "2.0",
"info": {
"title": "ParmaterizedEndpointClient",
"description": "Service client for testing parameterized hosts with the name 'endpoint'",
"version": "1.0.0"
},
"x-ms-parameterized-host": {
"hostTemplate": "{endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/endpoint"
}
]
},
"schemes": ["http"],
"produces": ["application/json"],
"paths": {
"/parameterizedEndpoint/get": {
"get": {
"operationId": "get",
"description": "Basic get to make sure base url formatting of 'endpoint' works",
"responses": {
"200": {
"description": "Success response"
},
"default": {
"description": "Unexpected error"
}
}
}
}
},
"parameters": {
"endpoint": {
"name": "endpoint",
"description": "The parameterized host. Pass in 'http://localhost:3000' to pass.",
"x-ms-parameter-location": "client",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
}
}
}