You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/api-management/graphql-policies.md
+21-10Lines changed: 21 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,6 @@ This article provides a reference for API Management policies to validate and re
25
25
26
26
The `validate-graphql-request` policy validates the GraphQL request and authorizes access to specific query paths. An invalid query is a "request error". Authorization is only done for valid requests.
* Permissions may be applied at any leaf node of an output type:
@@ -38,7 +35,7 @@ Because GraphQL queries use a flattened schema:
38
35
* Fragments
39
36
* Unions
40
37
* Interfaces
41
-
* The schema element
38
+
* The schema element
42
39
43
40
**Authorize element**
44
41
Configure the `authorize` element to set an appropriate authorization rule for one or more paths.
@@ -48,6 +45,8 @@ Configure the `authorize` element to set an appropriate authorization rule for o
48
45
**Introspection system**
49
46
The policy for path=`/__*` is the [introspection](https://graphql.org/learn/introspection/) system. You can use it to reject introspection requests (`__schema`, `__type`, etc.).
|`http-data-source`| Configures the HTTP request and optionally the HTTP response that are used to resolve data for the given `parent-type` and `field`. | Yes |
288
-
|`http-request`| Specifies a URL and child policies to configure the resolver's HTTP request. Each of the following policies can be specified at most once in the element. <br/><br/>Required policy: [set-method](api-management-advanced-policies.md#SetRequestMethod)<br/><br/>Optional policies: [set-header](api-management-transformation-policies.md#SetHTTPheader), [set-body](api-management-transformation-policies.md#SetBody), [authentication-certificate](api-management-authentication-policies.md#ClientCertificate)| Yes |
289
-
|`set-url`| The URL of the resolver's HTTP request. | Yes |
290
-
|`http-response`| Optionally specifies child policies to configure the resolver's HTTP response. If not specified, the response is returned as a raw string. Each of the following policies can be specified at most once. <br/><br/>Optional policies: [set-body](api-management-transformation-policies.md#SetBody), [json-to-xml](api-management-transformation-policies.md#ConvertJSONtoXML), [xml-to-json](api-management-transformation-policies.md#ConvertXMLtoJSON), [find-and-replace](api-management-transformation-policies.md#Findandreplacestringinbody)| No |
291
+
|`http-request`| Specifies a URL and child policies to configure the resolver's HTTP request. Each child element can be specified at most once. | Yes |
292
+
|`set-method`| Method of the resolver's HTTP request, configured using the [set-method](api-management-advanced-policies.md#SetRequestMethod) policy. | Yes |
293
+
|`set-url`| URL of the resolver's HTTP request. | Yes |
294
+
|`set-header`| Header set in the resolver's HTTP request, configured using the [set-header](api-management-transformation-policies.md#SetHTTPheader) policy. | No |
295
+
|`set-body`| Body set in the resolver's HTTP request, configured using the [set-body](api-management-transformation-policies.md#SetBody) policy. | No |
296
+
|`authentication-certificate`| Client certificate presented in the resolver's HTTP request, configured using the [authentication-certificate](api-management-authentication-policies.md#ClientCertificate) policy. | No |
297
+
|`http-response`| Optionally specifies child policies to configure the resolver's HTTP response. If not specified, the response is returned as a raw string. Each child element can be specified at most once. |
298
+
|`json-to-xml`| Transforms the resolver's HTTP response using the [json-to-xml](api-management-transformation-policies.md#ConvertJSONtoXML) policy. | No |
299
+
|`xml-to-json`| Transforms the resolver's HTTP response using the [xml-to-json](api-management-transformation-policies.md#ConvertJSONtoXML) policy. | No |
300
+
|`find-and-replace`| Transforms the resolver's HTTP response using the [find-and-replace](api-management-transformation-policies.md#Findandreplacestringinbody) policy. | No |
Copy file name to clipboardExpand all lines: includes/api-management-policy-generic-alert.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
author: dlepow
3
3
ms.service: api-management
4
4
ms.topic: include
5
-
ms.date: 03/15/2022
5
+
ms.date: 06/27/2022
6
6
ms.author: danlep
7
7
---
8
-
> [!TIP]
9
-
> Learn [how to set or edit API Management policies](../articles/api-management/set-edit-policies.md).
8
+
> [!NOTE]
9
+
> Set a policy's elements and child elements in the order provided in the policy statement. Learn more about[how to set or edit API Management policies](../articles/api-management/set-edit-policies.md).
0 commit comments