Skip to content

API Composition and Aggregation

Aggregation and merging

When you have more than one backend connected to an endpoint that is not using the no-op encoding, the gateway aggregates and merges the responses from all backends automatically in the final response.

For instance, imagine you have three different API services exposing the resources /a,/b, and /c, and you want to disclose them all together in the KrakenD endpoint /abc.

Step 1: Create Mutiple Endpoints as shown below click on endpoint choose output encoding pass url name as Resource path and method you are exposing

Endpoint

Endpoint