-
Notifications
You must be signed in to change notification settings - Fork 45
/
multiapi-v2-custom-base-url.json
83 lines (83 loc) · 1.99 KB
/
multiapi-v2-custom-base-url.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
{
"swagger": "2.0",
"info": {
"title": "Multiapi CustomBaseUrl Service Client",
"description": "Service client for multiapi custom base url testing",
"version": "2.0.0"
},
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}/multiapiCustomBaseUrl/v2",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/Endpoint"
}
]
},
"produces": ["application/json"],
"paths": {
"/test": {
"put": {
"operationId": "test",
"description": "Should be a mixin operation. Put in 2 for the required parameter and have the correct api version of 2.0.0 to pass",
"parameters": [
{
"name": "id",
"in": "query",
"description": "An int parameter. Put in 2 to pass",
"type": "integer",
"format": "int32",
"required": true
},
{
"$ref": "#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "The empty return value"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"definitions": {
"Error": {
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
},
"parameters": {
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "The API version to use for this operation.",
"minLength": 1
},
"Endpoint": {
"name": "Endpoint",
"description": "Pass in https://localhost:3000",
"x-ms-parameter-location": "client",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
}
}
}