Retrieving a Collection Top-Level Resource List
You can retrieve Oracle CRM On Demand collection top-level resources by sending an HTTP GET request to the collection resource's URL.
The following details are for a request to retrieve a list of Accounts resources on the Oracle CRM On Demand Server. The example includes the limit and offset paging parameters to limit the collection resource list. For more information about paging collection resources, see Paging Collection Resources.
URL: https://<host>/OnDemand/user/Rest/latest/Accounts?fields=AccountName,Location&limit=2&offset=0
HTTP Method: GET
Content-Type: None
Request body: None
The following are the details for the response to a successful request:
HTTP Code: 200
Content-Type: application/vnd.oracle.adf.resource+json
Response body:
{
"Accounts": [
{
"AccountName": "ACME Computer Parts",
"Location": "Hometown",
"links": {
"self": {
"rel": "self",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBR"
},
"canonical": {
"rel": "canonical",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBR"
},
"Opportunity": {
"rel": "child",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBR/child/Opportunities"
},
}
},
{
"AccountName": "Big Industry Inc.",
"Location": "Capital City",
"links": {
"self": {
"rel": "self",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBY"
},
"canonical": {
"rel": "canonical",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBY"
}
"Opportunities": {
"rel": "child",
"href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21ATBY/child/Opportunities"
},
}
}
],
"links": {"self": {
"rel": "self",
"href": "/OnDemand/user/Rest/latest/Accounts"
}},
"_contextInfo": {
"limit": 2,
"offset": 0
}
}