Cloud Application Integration (On-Premises) : Service Development : Working with REST API Descriptors : Working with REST Resources in a REST API Descriptor : Working with Operations : Reviewing and Changing the Assigned Source for an Operation Parameter
Reviewing and Changing the Assigned Source for an Operation Parameter
Designer assigns each parameter a source. The source value for a parameter indicates how the input parameter is sent in a request. If an input parameter for a service exposed as an operation is a document or document reference, Designer assigns the parameter a source of BODY. A source parameter of BODY cannot be changed. By default, Designer assigns all other parameters a source of FORMDATA.
When you add a REST resource to a REST API descriptor, you should verify that each parameter uses the source value that matches the service implementation exposed by the operation. You can only change the assigned source for a parameter if the source value is not BODY.
Note:  
There can only be one BODY parameter in the parameters list for an operation. If one of the parameter has a source set to BODY, you cannot edit the source for any of the other parameters listed for the operation.
To review and change the source for a parameter
1. In the Package Navigator view, lock and open the REST API descriptor that contains the REST resource operation for which you want to change the parameter source.
2. Click the REST Resources tab.
3. Expand the REST resource for which you want to view and change the parameter source.
4. Expand the operation for which you want to view and/or change the assigned source.
5. Click Parameters.
Designer displays the parameters for the operation.
6. To change the source for a parameter, click the cell for the parameter in the Source column and select the source you want to assign to the parameter. You can specify QUERY, HEADER, PATH, or FORMDATA.
7. Repeat step 6 for each parameter in the operation.
8. Click File > Save.
Copyright © 2015- 2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback