Field | Description |
Name | Type a name for the REST Application. |
Description | Type an optional description for the REST Application. The description you enter here will appear in the Applications page. |
Endpoint URL | Specify the Endpoint for the Application. It is the login endpoint URL to initiate communication with the SaaS provider. To get the end point, go through the back end documentation available on the internet for the SaaS provider. |
Authentication Type | Every back end provides its own authentication mechanism. Get the authentication details from the back end documentation and select the supported Authentication Type from the drop-down list. |
Application Icon | Select another icon for the REST Application, if necessary. |
Field | Description | ||
Name | Type the Resource name. | ||
Path | Type the path to the Resource. The Resource path is relative to the endpoint specified. Each REST Resource derives its path from the namespace of the REST Resource. For example, if the REST Resource is named myREST.myRESTResource, the path is “/myREST.myRESTResource”. You can define dynamic parameters in the resource path by enclosing each parameter within { } brackets. For example, to get the employee data corresponding to a dynamic parameter called employeeID, specify the resource path as /employee/{employeeID}. To get item information from a particular department in a store, specify the resource path as /store/{departmentID}/{itemID}.
|
Note: | Every Resource must have an Action associated with it. |
Field | Description | ||||
Method | Select an HTTP Method. GET - Reads or retrieves a representation of a resource. For example, GET <endpointurl>/addresses/2 will retrieve an address with an ID of 2. PUT - Updates an existing resource. For example, PUT <endpointurl>/addresses/3 will modify the address with an ID of 3. POST - Creates a resource. For example, POST <endpointurl>/addresses will create a new address. DELETE - Deletes a resource identified by an URI. For example, DELETE <endpointurl>/addresses/4 will delete an address with an ID of 4. | ||||
Description | Type an optional description for the Action. | ||||
Request Parameter | You can set parameters that become part of the outgoing request. Parameters specify the variable parts of your resources. Click Add Parameter to add a parameter to the request. Complete the following fields: Name - Type the parameter name. Value - Type a value for the parameter. Parameter Type - Select the parameter's type, which determines how the parameter should be used, for example, QUERYSTRING_PARAM or URI_CONTEXT. REST services rely on HTTP methods (GET, POST, PUT, and DELETE) to make requests to a SaaS provider. Thus the parameters are closely tied to these HTTP methods, as they are sent as part of these HTTP method requests. The parameters are part of the HTTP URI. QUERYSTRING_PARAM parameters are passed as the query component of a REST resource invocation request. For example, if the URI is https://api.twitter.com/1.1/users/show.json?screen_name=twitterdev, the resource path will be /users/show.json, screen_name is the name of the parameter, twitterdev is the value of the parameter, and the parameter type is QUERYSTRING_PARAM. URI_CONTEXT parameters are passed as the path component of a REST Resource URI, and the parameter names correspond to the URI path variable names specified in the {} annotation. For example, if the URI is https://api.twitter.com/1.1/users/{id}, the Resource path will be /users/{id}, the parameter type will be URI_CONTEXT, the parameter name will be id, and the value could be the user id, for example, either 1, or 2, or 3. Required - Select this option if you want this parameter to be made mandatory while creating an Integration. | ||||
Request Header | HTTP headers allow the client and the server to pass additional information with the request or the response.
Click Add Header to add a request HTTP header. In the Add Header dialog box, complete the following fields: Name - Type the Header name. Value - Type a value for the Header. Required - Select this option if you want this Header to be made mandatory while creating an Integration. | ||||
Request Body | In the Request Body pane, complete the following fields: Document Type - Select a Document Type for the request body or click Create Document Type to create a new Document Type. See Document Types.
Document Content Type If the documentation of the SaaS provider specifies that the content type of the request body is JSON, select application/json as the document content type. If the documentation of the SaaS provider specifies that the content type of the request body is XML, select application/xml as the document content type. These options allow you to control the content in an HTTP request body.
| ||||
Response Header | In the Response Header pane, click Add Header to add a Response HTTP header.
Complete the following fields: Name - Type the Header name. Value - Type a value for the Header. Required - Select this option if you want this Header to be made mandatory while creating an Integration. | ||||
Response Body | In the Response Body pane, complete the following fields: HTTP Code - Type a single HTTP status code or a code range to indicate the status of the response. Valid values are 100, 101, 102...599 or a range from 100-599. Document Type - Select a Document Type for the Response Body or click Create Document Type to create a new Document Type. See Document Types.
Document Content Type If the documentation of the SaaS provider specifies that the content type of the response body is JSON, select application/json as the document content type. If the documentation of the SaaS provider specifies that the content type of the response body is XML, select application/xml as the document content type. These options allow you to control the content in an HTTP response body.
|
Note: | Do not edit or delete an Action if it is already used in an Operation. If the Action is edited or deleted, the Operations that are dependent on the Action including the Integrations that are dependent on the affected Operations, will not function properly. |
Note: | To edit the REST Application, click the REST Application link and then click Edit Application. After editing the Application, the Update REST Application window appears, which provides a summary of the impacted Accounts, Operations, and Integrations. To delete the REST Application, click Delete Application. |