Skip to content

Commit 804e918

Browse files
authored
Merge pull request #108278 from PramodValavala-MSFT/patch-99
(AzureCXP) fix description of consider-accept-header attribute
2 parents 017e59c + 70f4662 commit 804e918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/api-management/api-management-transformation-policies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ This topic provides a reference for the following API Management policies. For i
7373
|Name|Description|Required|Default|
7474
|----------|-----------------|--------------|-------------|
7575
|apply|The attribute must be set to one of the following values.<br /><br /> - always - always apply conversion.<br />- content-type-json - convert only if response Content-Type header indicates presence of JSON.|Yes|N/A|
76-
|consider-accept-header|The attribute must be set to one of the following values.<br /><br /> - true - apply conversion if JSON is requested in request Accept header.<br />- false -always apply conversion.|No|true|
76+
|consider-accept-header|The attribute must be set to one of the following values.<br /><br /> - true - apply conversion if XML is requested in request Accept header.<br />- false -always apply conversion.|No|true|
7777
|parse-date|When set to `false` date values are simply copied during transformation|No|true|
7878

7979
### Usage
@@ -118,7 +118,7 @@ This topic provides a reference for the following API Management policies. For i
118118
|----------|-----------------|--------------|-------------|
119119
|kind|The attribute must be set to one of the following values.<br /><br /> - javascript-friendly - the converted JSON has a form friendly to JavaScript developers.<br />- direct - the converted JSON reflects the original XML document's structure.|Yes|N/A|
120120
|apply|The attribute must be set to one of the following values.<br /><br /> - always - convert always.<br />- content-type-xml - convert only if response Content-Type header indicates presence of XML.|Yes|N/A|
121-
|consider-accept-header|The attribute must be set to one of the following values.<br /><br /> - true - apply conversion if XML is requested in request Accept header.<br />- false -always apply conversion.|No|true|
121+
|consider-accept-header|The attribute must be set to one of the following values.<br /><br /> - true - apply conversion if JSON is requested in request Accept header.<br />- false -always apply conversion.|No|true|
122122

123123
### Usage
124124
This policy can be used in the following policy [sections](https://azure.microsoft.com/documentation/articles/api-management-howto-policies/#sections) and [scopes](https://azure.microsoft.com/documentation/articles/api-management-howto-policies/#scopes).

0 commit comments

Comments
 (0)