Skip to content

Commit b4aab7a

Browse files
author
Milan Zolota
committed
Model validation fixes
1 parent f519e65 commit b4aab7a

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2021-04-01-preview/apimpolicyfragments.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
"description": "Lists policy documents that reference the policy fragment of the Api Management service.",
308308
"x-ms-examples": {
309309
"ApiManagementListPolicyFragments": {
310-
"$ref": "./examples/ApiManagementListPolies.json"
310+
"$ref": "./examples/ApiManagementListPolicyFragmentReferences.json"
311311
}
312312
},
313313
"parameters": [
@@ -317,6 +317,9 @@
317317
{
318318
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
319319
},
320+
{
321+
"$ref": "./apimanagement.json#/parameters/PolicyFragmentIdParameter"
322+
},
320323
{
321324
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
322325
},
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-04-01-preview",
6+
"subscriptionId": "subid",
7+
"policyFragmentId": "policyFragment1",
8+
"If-Match": "*"
9+
},
10+
"responses": {
11+
"200": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-04-01-preview",
6+
"subscriptionId": "subid",
7+
"policyFragmentId": "policyFragment1"
8+
},
9+
"responses": {
10+
"200": {
11+
"headers": {
12+
"etag": "AAAAAAAAAAa="
13+
}
14+
}
15+
}
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"serviceName": "apimService1",
4+
"resourceGroupName": "rg1",
5+
"api-version": "2021-04-01-preview",
6+
"subscriptionId": "subid",
7+
"policyFragmentId": "policyFragment1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/policies/policy",
15+
"type": "Microsoft.ApiManagement/service/policies",
16+
"name": "policy",
17+
"properties": {
18+
"value": "<!--\r\n IMPORTANT:\r\n - Policy elements can appear only within the <inbound>, <outbound>, <backend> section elements.\r\n - Only the <forward-request> policy element can appear within the <backend> section element.\r\n - To apply a policy to the incoming request (before it is forwarded to the backend service), place a corresponding policy element within the <inbound> section element.\r\n - To apply a policy to the outgoing response (before it is sent back to the caller), place a corresponding policy element within the <outbound> section element.\r\n - To add a policy position the cursor at the desired insertion point and click on the round button associated with the policy.\r\n - To remove a policy, delete the corresponding policy statement from the policy document.\r\n - Policies are applied in the order of their appearance, from the top down.\r\n-->\r\n<policies>\r\n <inbound />\r\n <backend>\r\n <forward-request />\r\n </backend>\r\n <outbound />\r\n</policies>"
19+
}
20+
}
21+
],
22+
"count": 1,
23+
"nextLink": ""
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)