How to make a rest call using kie workbench

329 views
Skip to first unread message

fatema rangwala

unread,
May 13, 2016, 10:03:40 AM5/13/16
to Drools Usage
Using extensions feature I have made a angular-html page with the help of editors provided by kie workbench.
Now I am not getting how to make a rest call in that particular page.
Can anyone please guide me how can I make a rest call or write a rest code using kie workbench

Michael Anstis

unread,
May 13, 2016, 10:05:28 AM5/13/16
to Drools Usage
I assume your extension is written with Angular?



--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/3eef0055-459f-4464-b827-c2d51db2c5aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fatema rangwala

unread,
May 13, 2016, 10:11:43 AM5/13/16
to Drools Usage
For example if I can get some data from local git repository and I can save back some data to local git repository

Michael Anstis

unread,
May 13, 2016, 10:22:35 AM5/13/16
to Drools Usage
Is the "local git repository" cloned into the Workbench, or just a git repository somewhere on your local machine?

--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

fatema rangwala

unread,
May 13, 2016, 10:22:39 AM5/13/16
to Drools Usage
Hi Michael,

I am using drools 6.3.0 kie workbench, there they have provided extensions feature using which I have created a angular page. But there I didn't got any xml file where i can do mappings for path. Is there any way I can call git local repository through my angular code and save/fetch data to git local repository

Michael Anstis

unread,
May 13, 2016, 10:24:43 AM5/13/16
to Drools Usage
Is the "local git repository" cloned into the Workbench, or just a git repository somewhere on your local machine?

Also, you first asked about REST services; and now you're asking about accessing a local git repository. Which is it, or both?

fatema rangwala

unread,
May 13, 2016, 10:32:19 AM5/13/16
to Drools Usage
Its only on my local machine. I am not able to clone repository to my workbench. So currently using local machine repository

fatema rangwala

unread,
May 13, 2016, 10:34:22 AM5/13/16
to Drools Usage
I want to make a rest call for fetching or storing data from my local git repository.

Michael Anstis

unread,
May 13, 2016, 10:40:49 AM5/13/16
to Drools Usage
So, you've setup a git server to expose your local git repository as a REST service?

If so, my original link showing how to invoke a REST service from Angular should be a good starting point.

If not, then how do you expect to access a git repository with REST?!?

fatema rangwala

unread,
May 13, 2016, 10:49:01 AM5/13/16
to Drools Usage
No, I haven't done this. I was using tomcat server. May be I am missing this point only. So, i think i need to setup a git server first for making a rest call to git repository.

Michael Anstis

unread,
May 13, 2016, 10:50:44 AM5/13/16
to Drools Usage

fatema rangwala

unread,
May 13, 2016, 11:03:03 AM5/13/16
to Drools Usage
Thank you Michael for your help.. this will definitely help me in my further research. Thanks again :)

fatema rangwala

unread,
May 16, 2016, 8:05:14 AM5/16/16
to Drools Usage
Hi, I have one more doubt. Thank you for your rest api link. After connecting kie workbench with GIT. Can we make a rest call or write a code making rest call using Kie workbench or we need to setup a development workspace for this

jayanth patki

unread,
Aug 6, 2019, 6:53:00 AM8/6/19
to Drools Usage
Can someone please let me know what is this "extension feature provided by KIE Workbench" using which i can create my own Editor ? 
Thanks !

Alex Porcelli

unread,
Aug 9, 2019, 12:21:37 PM8/9/19
to drools...@googlegroups.com
Sorry, but I still can't quite understand what are you looking for. BC
won't expose any REST endpoint to manipulate (create, delete, update)
content in git repositories, for that we just expose the git
repositories via SSH and (recently) HTTP(s).

So, if you want to create, delete or edit any file you have to use git directly.

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/0a1eef61-4a1f-412a-974d-228f81951c9a%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages