Adding REST Resources to a REST API Descriptor
You can include additional REST resources in any RAD. Keep the following information in mind when selecting REST resources to add to a RAD:
A RAD can include either REST resources created using the legacy approach or resources created using the URL template-based approach (REST V2 resources). The descriptor
cannot include a combination of REST resources created using both the approaches.
A RAD created from REST resources using the legacy approach can include a resource with a
_default service. However,
Integration Server does not create an operation that corresponds to the
_default service.
A RAD does not support duplicate variable names in the input parameters or output parameters. The RAD uses only the first variable with a particular name and ignores subsequent identically named variables. Note that a variable in the input parameters can have the same name as a variable in the output parameters.
To add a REST resource to a REST API descriptor
1. In the Package Navigator view, lock and open the RAD to which you want to add a REST resource.
2. Click the REST Resources tab.
3. On the RAD toolbar, right-click in the REST Resources tab and select Add REST Resource.
4. In the Select one or more REST resources to include in the REST API descriptor dialog box, select one or more REST resources to add to the RAD and click OK.
Designer adds the REST resource to the RAD.
5. Click File > Save.