Use Multiple Verbs and Resources Invoke
Use this recipe to create and invoke a REST web service with multiple HTTP verbs and resources.
Note:
This recipe is available as Oracle Integration — REST | Use Multiple Verbs and Resources Invoke in the Integration Store. Oracle provides this recipe as a sample only. The recipe is meant only for guidance, and is not warranted to be error-free. No support is provided for this recipe.
Description
This recipe demonstrates how to use multiple HTTP verbs and resources configured for the REST trigger (also called an invoke) of an integration. A single REST trigger can be configured to have multiple HTTP verbs such as GET, PUT, POST, PATCH, and DELETE.
A single REST trigger can also be configured to have multiple resources.
However, this recipe configures the REST Adapter with a single
resource endpoint of /emp
and a sub-resource
/emp/loc
.
The configured operations are:
-
modifyEmployee (PATCH)
-
updateEmployee (PUT)
-
getEmployee (GET)
-
getEmployeeLocation (GET)
-
deleteEmployee (DELETE)
-
addEmployee (POST)
System Requirements
- Oracle Integration
Related Documentation