REST parent aaset type search/load and sort ?
Where can I find a code example or documentation on how to load or search all assets of certain asset type (it's a prent asset type), with all their flex attributes, sort the result by according to a flex attribute ?
The REST API resources reference and beans reference aren't clear on how to send request, the search parameters, receive responses not mentioning troubleshooting.
Thank you.
EDIT:
I tried editing the ReadAsset.java sample code like the following (based on gusses)
WebResource webResource = client.resource("http://localhost:9080/cs/REST"); webResource = webResource.path("types").path(flexAssetTypeName).path("search")
for(AssetInfo assetInfo : resultsAsset.getAssetinfos()) { System.out.println("Asset ID: " + assetInfo.getId()); for(FieldInfo fi : assetInfo.getFieldinfos()) { System.out.println("--Field name: " + fi.getFieldname()); System.out.println("--Field Value: " + fi.getData()); }