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
These requests execute in sequence, which is not ideal.
211
+
API Management will send these requests sequentially.
212
212
213
213
### Responding
214
+
214
215
To construct the composite response, you can use the [return-response](./api-management-advanced-policies.md#ReturnResponse) policy. The `set-body` element can use an expression to construct a new `JObject` with all the component representations embedded as properties.
215
216
216
217
```xml
@@ -233,10 +234,9 @@ The complete policy looks as follows:
@@ -268,20 +268,18 @@ The complete policy looks as follows:
268
268
new JProperty("materialdata",((IResponse)context.Variables["materialdata"]).Body.As<JObject>()),
269
269
new JProperty("throughputdata",((IResponse)context.Variables["throughputdata"]).Body.As<JObject>()),
270
270
new JProperty("accidentdata",((IResponse)context.Variables["accidentdata"]).Body.As<JObject>())
271
-
).ToString())
271
+
).ToString())
272
272
</set-body>
273
273
</return-response>
274
-
</inbound>
275
-
<backend>
276
-
<base />
277
-
</backend>
278
-
<outbound>
279
-
<base />
280
-
</outbound>
274
+
</inbound>
275
+
<backend>
276
+
<base />
277
+
</backend>
278
+
<outbound>
279
+
<base />
280
+
</outbound>
281
281
</policies>
282
282
```
283
283
284
-
In the configuration of the placeholder operation, you can configure the dashboard resource to be cached for at least an hour.
285
-
286
284
## Summary
287
285
Azure API Management service provides flexible policies that can be selectively applied to HTTP traffic and enables composition of backend services. Whether you want to enhance your API gateway with alerting functions, verification, validation capabilities or create new composite resources based on multiple backend services, the `send-request` and related policies open a world of possibilities.
0 commit comments