-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
ApiManagementGetApiOperationPetStore.json
91 lines (91 loc) · 2.8 KB
/
ApiManagementGetApiOperationPetStore.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
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2021-08-01",
"subscriptionId": "subid",
"apiId": "swagger-petstore",
"operationId": "loginUser"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/swagger-petstore/operations/loginUser",
"type": "Microsoft.ApiManagement/service/apis/operations",
"name": "loginUser",
"properties": {
"displayName": "Logs user into the system",
"method": "GET",
"urlTemplate": "/user/login?username={username}&password={password}",
"templateParameters": [
{
"name": "username",
"description": "The user name for login",
"type": "string",
"required": true,
"values": []
},
{
"name": "password",
"description": "The password for login in clear text",
"type": "string",
"required": true,
"values": []
}
],
"description": "",
"request": {
"queryParameters": [],
"headers": [],
"representations": []
},
"responses": [
{
"statusCode": 200,
"description": "successful operation",
"representations": [
{
"contentType": "application/xml",
"schemaId": "5ba91a35f373b513a0bf31c6",
"typeName": "UserLoginGet200ApplicationXmlResponse"
},
{
"contentType": "application/json",
"schemaId": "5ba91a35f373b513a0bf31c6",
"typeName": "UserLoginGet200ApplicationJsonResponse"
}
],
"headers": [
{
"name": "X-Rate-Limit",
"description": "calls per hour allowed by the user",
"type": "integer",
"values": []
},
{
"name": "X-Expires-After",
"description": "date in UTC when token expires",
"type": "string",
"values": []
}
]
},
{
"statusCode": 400,
"description": "Invalid username/password supplied",
"representations": [
{
"contentType": "application/xml"
},
{
"contentType": "application/json"
}
],
"headers": []
}
]
}
}
}
}
}