You can deploy a data object as a REST web service or you can define the web service with a wizard.
Before you create a web service, determine the elements that you want to include in the response message. Use one of the following methods to create the web service based on the response message structure:
Create the web service manually.
Manually create the web service if the response message contains data that the resource mapping must calculate or format. Manually create the web service if the mapping has multiple sources. When the response message contains hierarchical data or multiple-occurring data, you must manually define the structure.
Create the web service from a data object.
If the response message contains data that is from one data object, you can create the resource definition based on the data object. You can choose specific columns from the data object and you can change the resource mapping after you create the web service.
Deploy a data object as a web service.
Deploy a data object as a web service if the response message can contain all the columns from a data object.