Section 9.2 REST API of Guvnor's documentation gives examples.

The URL pattern /packages/{packageName}/assets will provide a list of assets.

You'll probably have to iterate the result to find an asset of the correct format (org.drools.guvnor.client.common.AssetFormats contains a list).

URL pattern packages/{packageName}/assets/{assetName}/source can then use used to retrieve the DRL.

On 8 December 2011 13:33, srinivasasanda <srinivasasanda@gmail.com> wrote:
Hi Manstis,

I've updated the version to 5.3.0.Could you please suggest me in one of the
context which I was struggling.There is a REST API to GET and POST the
packages present at server side in Drools Guvnor.In the same way,Is there
REST API to GET the facts present in the declarative model of a specified
package.If it is,can you suggest me how to achieve.

The main objective is I need to retrieve the facts present in the
declarative model of a package.

Thanks

--
View this message in context: http://drools.46999.n3.nabble.com/Dynamic-Fact-field-Generation-in-Declarative-Model-tp3545088p3570297.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users