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 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 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.