Create a REST Web Service for GET Account API
After creating the Similar Accounts REST web service, create another REST web service for GET Account API. Here’s how you create it:
- On the Web Services page, click the new web service icon.
- On the Select Connection Type window, select REST and click OK.
- On the Create REST Web Service Connection page, enter a Connection
Name. For example, GET_Accounts.
Ensure that you use same connection name in Global Function Groovy. See the Create a Global Function for SalesMLQueryAPI Similar Records section in this topic.
- Leave the API-based REST Service check box blank.
- Select OData for REST Service Type.
- Enter a URL in the format,
https://<host>/crmRestApi/resources/latest/accounts
. For example,https://fuscdrmsmcxxx-fa-ext.oracle.com/crmRestApi/resources/latest/accounts
. - Select Call with Basic Authentication for Authentication Scheme.
- Add your Credential Key.
- Next, enter information in the Select and Configure Methods against the Resource
section:
- Select the GET check box.
- Let the Method Name be GET and Format be JSON.
- Leave Request Payload blank.
- Select Code Sample for Response Payload and enter the
following code into the text field:
{ "items" : [], "count" : 1, "hasMore" : false, "limit" : 25, "offset" : 0, "links" : []}
- Save and close.