GET Resource List Example

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- GET /qcbin/rest/resource-list HTTP/1.1 Accept: application/xml --> <ResourceCollections> <ResourceCollection BasePath="sa/site-params"> <Resource> <Path>/sa/site-params/metadata</Path> <HttpMethod>GET</HttpMethod> <Produces>text/html</Produces> <Produces>application/xml</Produces> <Produces>application/json</Produces> <Produces>application/json;schema=alm-web</Produces> </Resource> </ResourceCollection> <ResourceCollection BasePath="resource-list"> <Resource> <Path>/resource-list/administrative</Path> <HttpMethod>GET</HttpMethod> <Produces>text/html</Produces> <Produces>text/xml</Produces> <Produces>application/xml</Produces> <Produces>*/*</Produces> <Produces>text/plain</Produces> </Resource> <Resource> <Path>/resource-list</Path> <HttpMethod>GET</HttpMethod> <Produces>application/xml</Produces> <Produces>application/json</Produces> <Produces>application/json;schema=alm-web</Produces> </Resource> </ResourceCollection> … </ResourceCollections>

GET /qcbin/rest/resource-list HTTP/1.1 Accept: application/json [ { "BasePath": "sa/site-params", "Resources": [ { "Path": "/sa/site-params/metadata", "HttpMethod": "GET", "Produces": [ "text/html", "application/xml", "application/json", "application/json;schema=alm-web" ] } ] }, { "BasePath": "resource-list", "Resources": [ { "Path": "/resource-list/administrative", "HttpMethod": "GET", "Produces": [ "text/html", "text/xml", "application/xml", "*/*", "text/plain" ] }, { "Path": "/resource-list", "HttpMethod": "GET", "Produces": [ "application/xml", "application/json", "application/json;schema=alm-web" ] } ] } … ]