List Resources
The ListResources method of the Resource API returns a list of all the resource objects in the system.
This operation is a simple http GET on the base URL of the API. 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 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
{
"ResourceSummary" : [ {
"first" : "First746424366",
"last" : "Last746424366",
"ID" : "746424366"
}, {
"first" : "First514413712",
"last" : "Last514413712",
"ID" : "514413712"
},
.
.
.
{
"first" : "First432771000",
"last" : "Last432771000",
"ID" : "432771000"
} ]
}
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"?>
<ResourceList xmlns="http://demo.soa.com/resource/1.0">
<ResourceSummary>
<ID>746424366</ID>
<first>First746424366</first>
<last>Last746424366</last>
</ResourceSummary>
<ResourceSummary>
<ID>514413712</ID>
<first>First514413712</first>
<last>Last514413712</last>
</ResourceSummary>
.
.
.
<ResourceSummary>
<ID>432771000</ID>
<first>First432771000</first>
<last>Last432771000</last>
</ResourceSummary>
</ResourceList>
back to top