Skip to content

Commit

Permalink
moving from code comment to xml compliant comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-urnun-msft committed Oct 2, 2019
1 parent 3bc1b3d commit a19feff
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -16,16 +16,16 @@
<base />
<choose>
<when condition="@(context.Response.StatusCode == 200 && context.Product.Name.Equals("Starter"))">
<set-body>
<!-- NOTE that we are not using preserveContent=true when deserializing response body stream into a JSON object since we don't intend to access it again. See details on https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#SetBody -->
<set-body>
@{
//NOTE that we are not using preserveContent=true when deserializing response body stream into a JSON object since we don't intend to access it again. See details on https://docs.microsoft.com/en-us/azure/api-management/api-management-transformation-policies#SetBody
var response = context.Response.Body.As<JObject>();
foreach (var key in new [] {"minutely", "hourly", "daily", "flags"}) {
response.Property (key).Remove ();
}
return response.ToString();
}
</set-body>
</set-body>
</when>
</choose>
</outbound>
Expand Down

0 comments on commit a19feff

Please sign in to comment.