Create and customizing REST services using manual controller command and data bean mapping
We can create and customize our own REST services with WebSphere Commerce Developer and using manual controller command and data bean mapping.
- Obtaining the command context
Commands can obtain information from the command context. For example, available information includes the user's ID, the user object, the language identifier, and the store identifier. The command context must be set to a controller command before it is run.- Best practices for mapping REST API methods to controller commands
Follow the sample code and coding tips to ensure that your new or custom REST controller command services conform to WebSphere Commerce best practices.- Best practices for mapping REST API methods to data beans
Follow the sample code and coding tips to ensure that your new or custom REST data bean services conform to WebSphere Commerce best practices.