[rules-users] do we have public API for exporting the guvnor repository

Zahid Ahmed zahid.ahmed at emirates.com
Mon Sep 30 00:38:48 EDT 2013


Hi,

There are REST interfaces exposed by Guvnor. You can use those REST interfaces to make your own import export utility program. There are REST interfaces to GET and PUT assets into Guvnor. The only issue in Guvnor's REST interface is that it is not secured. You can access a package, If you have a valid user, and password but you don't have Permissions on that package.

Regards,
Zahid Ahmed

From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Jervis Liu
Sent: 29 September 2013 15:03
To: rules-users at lists.jboss.org
Subject: Re: [rules-users] do we have public API for exporting the guvnor repository

On 2013/9/26 0:24, Sean Su wrote:
Does anyone know if we have the public API to export the Guvnor rule repository in the format (xml, or zip version) that we can manually retrieve by going to "Administration/ImportExport" section?
No, I am afraid we do not have such API. But, the repo import/export in 5.5 (and earlier versions) is severed by this servlet: https://github.com/droolsjbpm/guvnor/blob/5.5.x/guvnor-webapp-core/src/main/java/org/drools/guvnor/server/files/RepositoryBackupServlet.java
You should be able to call this servlet directly as long as you have provided this servlet with parameters it requires and set Basic authentication correctly.

Cheers,
Jervis


Thanks

Sean




_______________________________________________

rules-users mailing list

rules-users at lists.jboss.org<mailto:rules-users at lists.jboss.org>

https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130930/05e34907/attachment.html 


More information about the rules-users mailing list