-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdemo-api.json
71 lines (71 loc) · 2.66 KB
/
demo-api.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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"APIMServiceName": {
"type": "string"
},
"demoApiID": {
"type": "string"
},
"starterProductID": {
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.ApiManagement/service/apis",
"name": "[concat(parameters('APIMServiceName'), '/', parameters('demoApiID'))]",
"apiVersion": "2018-01-01",
"scale": null,
"properties": {
"displayName": "Demo API",
"apiRevision": "1",
"description": null,
"serviceUrl": "http://echoapi.cloudapp.net/api",
"path": "demo",
"protocols": [
"https"
],
"authenticationSettings": null,
"subscriptionKeyParameterNames": null,
"isCurrent": true
}
},
{
"type": "Microsoft.ApiManagement/service/products/apis",
"name": "[concat(parameters('APIMServiceName'), '/', parameters('starterProductID'), '/', parameters('demoApiID'))]",
"apiVersion": "2018-01-01",
"scale": null,
"properties": {
"displayName": "Demo API",
"apiRevision": "1",
"description": null,
"serviceUrl": "http://echoapi.cloudapp.net/api",
"path": "demo",
"protocols": [
"https"
],
"authenticationSettings": null,
"subscriptionKeyParameterNames": null,
"isCurrent": true
},
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/apis', parameters('APIMServiceName'), parameters('demoApiID'))]"
]
},
{
"type": "Microsoft.ApiManagement/service/apis/policies",
"name": "[concat(parameters('APIMServiceName'), '/', parameters('demoApiID'), '/policy')]",
"apiVersion": "2018-01-01",
"properties": {
"policyContent": "https://raw.githubusercontent.com/miaojiang/APIMDevOps/master/demo-api-policy.xml",
"contentFormat": "rawxml-link"
},
"dependsOn": [
"[resourceId('Microsoft.ApiManagement/service/apis', parameters('APIMServiceName'), parameters('demoApiID'))]"
]
}
]
}