Get Resource

The GetResource method of the Resource API returns a single resource object from the system. This operation is a simple http GET on the base URL of the API appended with the ID of the resource (which can easily be found using the ListResource method. Use the Accept header to determine the mediatype the API will return. Acceptable mediatypes are as described in the API Overview.

Sample Request

GET /resource/746424366 HTTP/1.1 Authorization: Atmosphere realm=http://atmosphere,atmosphere_app_id=,atmosphere_signature_method=NONE; Accept: application/json User-Agent: SOA Software HTTP Client Transport Host: demo2-broker.atmos.phe.re

For more details on how to specify the authentication header, and on API security in general, please see the API Overview document.

Sample Responses

JSON Response

HTTP/1.1 200 OK Date: Wed, 18 Apr 2012 21:42:31 GMT Content-Type: application/json Content-Encoding: gzip Transfer-Encoding: chunked { "city" : "City746424366", "first" : "First746424366", "last" : "Last746424366", "line1" : "Line1746424366", "phone" : "Phone: 746424366", "state" : "CA", "zip" : "55555", "ID" : "746424366", "SSN" : "746424366" }

XML Response

HTTP/1.1 200 OK Date: Wed, 18 Apr 2012 21:42:31 GMT Content-Type: application/json Content-Encoding: gzip Transfer-Encoding: chunked <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Resource xmlns="http://demo.soa.com/resource/1.0"> <city>City746424366</city> <first>First746424366</first> <ID>746424366</ID> <last>Last746424366</last> <line1>Line1746424366</line1> <phone>Phone: 746424366</phone> <SSN>746424366</SSN> <state>CA</state> <zip>55555</zip> </Resource>

back to top