Oracle CRM On Demand REST API Developer's Guide > Using the Oracle CRM On Demand REST API > Retrieving Oracle CRM On Demand Resources >

Retrieving Oracle CRM On Demand Top-Level Resources


You can retrieve Oracle CRM On Demand top-level resources by sending an HTTP GET request to the resource's URL.

The following details are for a request to retrieve an Accounts resource on the Oracle CRM On Demand Server:

  • URL: /OnDemand/user/Rest/latest/Accounts/1QA2-21SEFY?fields=AccountName,Location
  • 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": "test get",
       "Location": "HomeTown",
       "links": {
         "self": {
         "rel": "self",
         "href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21SEFY"
         },
       "canonical": {
          "rel": "canonical",
          "href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21SEFY"
         }
       "Opportunities": {
          "rel": "child",
          "href": "/OnDemand/user/Rest/latest/Accounts/1QA2-21SEFY/child/Opportunities"
          }
       }
     }
  ]
}

Oracle CRM On Demand REST API Developer's Guide, Release 32 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.