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 add additional REST resources to 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 a REST 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, click or 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 and adds an operation for each service that corresponds to an HTTP method.
5. Click File > Save.
Copyright © 2017 Software AG, Darmstadt, Germany. (Innovation Release)

Product LogoContact Support   |   Community   |   Feedback