# rest api in bonita

**URL:** <https://community.ofelia.com/t/rest-api-in-bonita/9503>\
**Category:** Q&A\
**Created:** [7 March 2019 06:14 UTC](https://community.ofelia.com/t/rest-api-in-bonita/9503 "2019-03-07T06:14:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramireddy.pingala](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ramireddy.pingala](https://community.ofelia.com/u/ramireddy.pingala)\
**Post date:** [7 March 2019 06:14 UTC](https://community.ofelia.com/t/rest-api-in-bonita/9503/1 "2019-03-07T06:14:59Z")

</div>

i have created one java rest api , now i want to get the json responce to bonita. how to get the JSON responce from Rest API Please help me Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Jerome.Jargot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/jerome.jargot/32/925_2.png) [@Jerome.Jargot](https://community.ofelia.com/u/Jerome.Jargot)\
**Post date:** [11 March 2019 16:32 UTC](https://community.ofelia.com/t/rest-api-in-bonita/9503/2 "2019-03-11T16:32:22Z")

</div>

Hi,

Once installed, using the portal, simply send the associated HTTP request. The JSON is in the response's body.

&nbsp;

If you are using the UIDesigner to develop forms, then add a variable to issue a HTTP request with GET method:  
- name **myVariable** , Type **External API** , Value ../API/extension/myRESTAPI/

At page load, myVariable will contain the JSON.

Another solution would be to add a button to the page: the button is configurable and can be used to send HTTP requests with GET, POST ... methods, and store the result into a variable of the form.

Regards,  
Jerome

&nbsp;
