About This Recipe
This recipe demonstrates how you can expose multiple entry points to a single, orchestrated integration flow that uses the REST Adapter as a trigger connection. You can configure each entry point with a different resource endpoint and operation (HTTP action), as necessary.
Using this recipe, you can send multiple, different REST requests from an external application to the same integration flow.
To use the recipe, you must install the recipe and configure the connection and other resources within it. Subsequently, you can activate the integration flow of the recipe and send multiple, different REST requests (with request parameters) to the integration flow’s endpoint URL from an external application. When triggered, the integration flow performs the requested operations on the respective resources and returns the responses.
Note:
As this is just a demonstration of how to use multiple HTTP verbs and resources in the REST Adapter trigger connection of an integration flow, the recipe contains the following customizations:
- Even though multiple resource endpoints are supported, this recipe uses a single, sample resource (/emp) and a sample sub-resource (/emp/loc).
- This recipe has the following sample operations configured:
- modifyEmployee (PATCH)
- updateEmployee (PUT)
- getEmployee (GET)
- getEmployeeLocation (GET)
- deleteEmployee (DELETE)
- addEmployee (POST)