Customize REST services using post-processing commands
WebSphere Commerce provides a customizable REST interface. We can interact with a variety of WebSphere Commerce services using lightweight REST calls. The REST handler is configurable, so we can easily add our own request handlers.
We can use REST to interact with a number of WebSphere Commerce features, including the BOD service, data beans, and commands. Prior to Version 9, customizing these REST interfaces required programming changes within BOD, or the data beans themselves. Version 9 avoids the complexity of this approach by providing a simple and uniform postprocessing layer where your REST customizations execute. In addition to invoking existing services through this service, we can add handlers to interact with our own customizations.
- Customizing existing REST handlers
We can customize existing REST request handlers using a post-process command.- Creating custom REST request handlers
We can create custom REST request handlers to communicate with the REST post-processing system. A template is provided that we can adapt for our own purposes.