Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Working with REST API Descriptors | Working with REST Resources in a REST API Descriptor | Adding REST Resources to a REST API Descriptor
 
Adding REST Resources to a REST API Descriptor
You can include additional REST resources in any REST API descriptor. Keep the following information in mind when selecting REST resources to add to a REST API descriptor:
*A REST API descriptor 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 REST API descriptor 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 REST API descriptor does not support duplicate variable names in the input parameters or output parameters. The REST API descriptor 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 REST API descriptor to which you want to add a REST resource.
2. Click the REST Resources tab.
3. On the REST API descriptor 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 REST API descriptor and click OK.
Designer adds the REST resource to the REST API descriptor.
5. Click File > Save.