For some reason I don't know, it is not possible to retrieve assets using their UUID in REST-API. Everything must be done using asset's name
If you want to get all the assets' uuid from all your packages in guvnor you could do something like:
- Get all the packages: http://localhost:8080/drools-guvnor/rest/packages This will return you a list of all the packages with their corresponding assets.
- The problem is that the list returned in step1 doesn't contain the uuid of the assets, so you have to query each url returned as <asset> to get asset information.
- Each individual asset will have its uuid under metadata/uuid attribute
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com