Skip to content

Commit

Permalink
switch to plural example file names for LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
solankisamir committed Feb 25, 2019
1 parent 67dca3c commit 4c7d251
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1198,8 +1198,8 @@
"operationId": "ApiOperationPolicy_ListByOperation",
"description": "Get the list of policy configuration at the API Operation level.",
"x-ms-examples": {
"ApiManagementListApiOperationPolicys": {
"$ref": "./examples/ApiManagementListApiOperationPolicys.json"
"ApiManagementListApiOperationPolicies": {
"$ref": "./examples/ApiManagementListApiOperationPolicies.json"
}
},
"parameters": [
Expand Down Expand Up @@ -1678,9 +1678,6 @@
{
"$ref": "./apimanagement.json#/parameters/TagIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -1736,9 +1733,6 @@
{
"$ref": "./apimanagement.json#/parameters/TagIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -1832,8 +1826,8 @@
"operationId": "ApiPolicy_ListByApi",
"description": "Get the policy configuration at the API level.",
"x-ms-examples": {
"ApiManagementListApiPolicys": {
"$ref": "./examples/ApiManagementListApiPolicys.json"
"ApiManagementListApiPolicies": {
"$ref": "./examples/ApiManagementListApiPolicies.json"
}
},
"parameters": [
Expand Down Expand Up @@ -4198,9 +4192,6 @@
{
"$ref": "./apimanagement.json#/parameters/TagIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
Expand Down Expand Up @@ -4265,9 +4256,6 @@
{
"$ref": "./apimanagement.json#/parameters/TagIdParameter"
},
{
"$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
"operationId": "Policy_ListByService",
"description": "Lists all the Global Policy definitions of the Api Management service.",
"x-ms-examples": {
"ApiManagementListPolicys": {
"$ref": "./examples/ApiManagementListPolicys.json"
"ApiManagementListPolicies": {
"$ref": "./examples/ApiManagementListPolicies.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@
"operationId": "ProductPolicy_ListByProduct",
"description": "Get the policy configuration at the Product level.",
"x-ms-examples": {
"ApiManagementListProductPolicys": {
"$ref": "./examples/ApiManagementListProductPolicys.json"
"ApiManagementListProductPolicies": {
"$ref": "./examples/ApiManagementListProductPolicies.json"
}
},
"parameters": [
Expand Down Expand Up @@ -1135,8 +1135,8 @@
"operationId": "Tag_ListByProduct",
"description": "Lists all Tags associated with the Product.",
"x-ms-examples": {
"ApiManagementGetTagsForProduct": {
"$ref": "./examples/ApiManagementGetTagsForProduct.json"
"ApiManagementListProductTags": {
"$ref": "./examples/ApiManagementListProductTags.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
"url": "https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties"
},
"x-ms-examples": {
"ApiManagementListPropertys": {
"$ref": "./examples/ApiManagementListPropertys.json"
"ApiManagementListProperties": {
"$ref": "./examples/ApiManagementListProperties.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@
"operationId": "UserIdentities_List",
"description": "Lists all user identities.",
"x-ms-examples": {
"ApiManagementListUserIdentitys": {
"$ref": "./examples/ApiManagementListUserIdentitys.json"
"ApiManagementListUserIdentities": {
"$ref": "./examples/ApiManagementListUserIdentities.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2018-06-01-preview",
"subscriptionId": "subid",
"apiId": "5600b59475ff190048040001"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b59475ff190048040001/policies/policy",
"type": "Microsoft.ApiManagement/service/apis/policies",
"name": "policy",
"properties": {
"policyContent": "<!--\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 - Position the <base> element within a section element to inherit all policies from the corresponding section element in the enclosing scope.\r\n - Remove the <base> element to prevent inheriting policies from the corresponding section element in the enclosing scope.\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 <quota-by-key calls=\"5\" bandwidth=\"2\" renewal-period=\"&#x9;P3Y6M4DT12H30M5S\" counter-key=\"ba\" />\r\n <base />\r\n </inbound>\r\n <backend>\r\n <base />\r\n </backend>\r\n <outbound>\r\n <log-to-eventhub logger-id=\"apimService1\" partition-key=\"@(context.Subscription.Id)\">\r\n@{\r\n\tRandom Random = new Random();\r\n\t\t\t\tconst string Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \"; \r\n return string.Join(\",\", DateTime.UtcNow, new string(\r\n Enumerable.Repeat(Chars, Random.Next(2150400))\r\n .Select(s =&gt; s[Random.Next(s.Length)])\r\n .ToArray()));\r\n } \r\n </log-to-eventhub>\r\n <base />\r\n </outbound>\r\n</policies>"
}
}
],
"nextLink": ""
}
}
}
}

This file was deleted.

0 comments on commit 4c7d251

Please sign in to comment.