What information are you trying to get? Other that the information you already have, you can append a /source to the url to get the source code of the asset.<div>Please read the documentation manual to see all the operations you have using REST-API.<br>
<div><br></div><div>Best Regards,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
<br><br><div class="gmail_quote">On Fri, Jan 13, 2012 at 7:54 AM, srinivasasanda <span dir="ltr"><<a href="mailto:srinivasasanda@gmail.com">srinivasasanda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
Hi,<br>
I'm able to get asset information like UUID, format etc using the following<br>
Rest API<br>
:<a href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/ABC" target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/assets/ABC</a><br>
<br>
It displaying the following xml code in browser :<br>
<asset><binaryLink><a href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC/binary" target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC/binary</a></binaryLink><checkInComment/><description>created<br>
by standalone<br>
editor</description><metadata><created>2012-01-09T16:09:42.284+05:30</created><createdBy>guest</createdBy><disabled>false</disabled><format>template</format><lastModified>2012-01-09T16:09:48.122+05:30</lastModified><note/><title>ABC</title><uuid>cf3823ca-f805-42c9-82d3-842b17b344fe</uuid></metadata><refLink><a href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC" target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC</a></refLink><sourceLink><a href="http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC/source" target="_blank">http://localhost:8080/drools-guvnor/rest/packages/defaultPackage/asset/ABC/source</a></sourceLink><type/><version>1</version></asset><br>
<br>
Suppose if i have 5 rules in the above template asset "ABC" how can i get<br>
those rules information using Rest API or any other drools API (if i have<br>
UUID of the template).<br>
<br>
Please suggest me.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/How-to-get-Asset-UUID-tp3650138p3655941.html" target="_blank">http://drools.46999.n3.nabble.com/How-to-get-Asset-UUID-tp3650138p3655941.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div></div>