# Engine API or REST API?

**URL:** <https://community.ofelia.com/t/engine-api-or-rest-api/9130>\
**Category:** Q&A\
**Created:** [14 June 2018 16:50 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130 "2018-06-14T16:50:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![raulvadillo\_1372335](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@raulvadillo\_1372335](https://community.ofelia.com/u/raulvadillo_1372335)\
**Post date:** [14 June 2018 16:50 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/1 "2018-06-14T16:50:51Z")

</div>

Hello.

I’m new in development with Bonita BPM. I’m creating a test app using Spring Boot and I want to connect it to Bonita BPM.  
My cuestion is if the Engine API has the same methods as the REST API. If this it’s true, I can use the Engine API in the code in a simplier and faster way than using the REST API.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [14 June 2018 22:03 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/2 "2018-06-14T22:03:00Z")

</div>

Hello raulvadillo\_1372335,

The Engine and REST APIs are not equivalent: the Engine API (Java) exposes more than the REST API does.

If you use SpringBoot or whatever Java program, it is recommended to use the Engine API. The REST API becomes useful when the client is written is a language that is different than Java. In case you did not have the chance to look at it yet, I add the links to the documentation for each API option:

- [Engine API](https://documentation.bonitasoft.com/bonita/7.7/_engine-api)
- [REST API](https://documentation.bonitasoft.com/bonita/7.7/_rest-api)

HIH,

---

<div class="post-metadata">

**Author:** ![raulvadillo\_1372335](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@raulvadillo\_1372335](https://community.ofelia.com/u/raulvadillo_1372335)\
**Post date:** [15 June 2018 06:24 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/3 "2018-06-15T06:24:18Z")

</div>

Hi pierrick.voulet, thanks for your answer. I had the wrong idea because it seems that the documentation of REST API is more complete than the Engine API one.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [15 June 2018 12:40 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/4 "2018-06-15T12:40:37Z")

</div>

May be the Javadoc available [here](https://documentation.bonitasoft.com/javadoc/api/7.7/index.html) will be helpful to you. The most important part is the XxxxAPI interfaces like ProcessAPI or IdentityAPI for examples. You have an exhaustive list of them in the documentation link I provided you in my answer.

---

<div class="post-metadata">

**Author:** ![nampham97se\_1390962](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nampham97se\_1390962](https://community.ofelia.com/u/nampham97se_1390962)\
**Post date:** [21 February 2019 01:22 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/5 "2019-02-21T01:22:22Z")

</div>

Hello, i have a question with spring boot. Is i can use a form in spring boot project (tomcat A port 8888)&nbsp;and submit it to bonita manage (tomcat B port&nbsp;8080)?

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [28 February 2019 10:30 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/6 "2019-02-28T10:30:12Z")

</div>

Yes you can submit data from an external form to Bonita using REST API. See the [bpm-api&nbsp;documentation](https://documentation.bonitasoft.com/bonita/7.7/bpm-api)&nbsp;"Execute a task with contract" API call.

---

<div class="post-metadata">

**Author:** ![nampham97se\_1390962](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nampham97se\_1390962](https://community.ofelia.com/u/nampham97se_1390962)\
**Post date:** [1 March 2019 02:05 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/7 "2019-03-01T02:05:03Z")

</div>

Thanks sir, I using Engine API on Spring boot and using execute, assign, deploy wf with contract is good. Now i want to more advanced like integrated CAS, dynamic input contract in code backend Sping, etc... You have infomation contract like email or facebook? We can communication easy than and help more :).

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [20 March 2019 17:08 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/8 "2019-03-20T17:08:09Z")

</div>

Hi,

I only provide help on the community forum sorry.  
About CAS support, this is a feature only available in Bonita Enterprise Edition (see [documentation](https://documentation.bonitasoft.com/bonita/7.8/single-sign-on-with-cas)).  
If you need more help you might be interested in Bonitasoft [professional service](https://www.bonitasoft.com/professional-services) or [training](https://www.bonitasoft.com/bonitasoft-trainings-and-certifications).

---

<div class="post-metadata">

**Author:** ![nampham97se\_1390962](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@nampham97se\_1390962](https://community.ofelia.com/u/nampham97se_1390962)\
**Post date:** [21 March 2019 03:57 UTC](https://community.ofelia.com/t/engine-api-or-rest-api/9130/9 "2019-03-21T03:57:57Z")

</div>

You can help me this issues i have post in forum:  
[Issues](http://community.ofelia.com/questions-and-answers/retrieve-value-business-object-use-bonita-engine-api)

I cant retrieve BDM value in archived case ( complete task). I try much example and all incorrect. With open task it fine and work as well.  
Thanks.
