Testing REST API Calls to Siebel using Postman
Once the Introspect URL has been validated, the next step would be to test the REST API calls to Siebel using Postman.
- Open Postman and in the existing collection "OAuthRESTAPIKM”, and create a GET request with a URL value in the format of https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account.
- With the same existing values defined in the request, click Send to run the REST API call to Siebel to get the Account data for the clientID/userID. When it runs, it will provide the below response showing the list of ALL the accounts created by the ClientID/user.
Below is a sample of how the request output will look when GET.data.Account.Account method is run using a REST API call to capture the list of all the accounts for the clientID/user.
{
"items": [
{
"SBA Review": "",
"Friday End Time 2": "",
"Saturday End Time 2": "",
"Modified By Name": "clientID/UserID",
"Friday End Time 1": "",
"Saturday End Time 1": "",
"Our Position": "",
"Supply Characteristics": "",
"DeDup Key Modification Date": "",
"Prospect Flag": "N",
"Market Share": "",
"Statement Date": "",
"Reference Stage": "",
.....
"Link": [
{
"rel": "self",
"href": "https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account/1-2X9B6",
"name": "Account"
},
{
"rel": "canonical",
"href": "https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account/1-2X9B6",
"name": "Account"
},
{
"rel": "child",
"href": "https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account/1-2X9B6/UT Account Partner",
"name": "UT Account Partner"
....
],
"Link": {
"rel": "self",
"href": "https://AIHostname:AIHTTPSPort/siebel/v1.0/data/Account/Account",
"name": "Account"
}
}
The above payload response would indicate that the request sent via OAuth to Siebel is able to retrieve the account details of all the accounts that were created by the clientID/user.