# Create a REST API to call flowable engine and api

**URL:** <https://forum.flowable.org/t/create-a-rest-api-to-call-flowable-engine-and-api/1053>\
**Category:** Flowable Application\
**Created:** [October 12, 2017, 8:42am UTC](https://forum.flowable.org/t/create-a-rest-api-to-call-flowable-engine-and-api/1053 "2017-10-12T08:42:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shweta](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/shweta/32/360_2.png) [@shweta](https://forum.flowable.org/u/shweta)\
**Post date:** [October 12, 2017, 8:42am UTC](https://forum.flowable.org/t/create-a-rest-api-to-call-flowable-engine-and-api/1053/1 "2017-10-12T08:42:06Z")

</div>

I need to create an application (may be a REST api) such that i can create a task from the code, that task should be reflected in flowable UI .  
At this point I am trying to make flowable-rest and flowable-task pointing to same mysql database as they both have different h2 databases as tasks i create in flowable-rest(localhost:8080/flowable-rest/service/runtime/tasks ) is not visible on flowable UI([http://localhost:8080/flowable-task/workflow/#/tasks](http://localhost:8080/flowable-task/workflow/#/tasks)) .So i am stuck at this. My next step would be to create a REST api to create flowable tasks and get that reflected on UI.  
Can I do this by calling flowable-rest in my REST api or any other way?  
I need a sample code for the same  
It would be really helpful if someone could guide.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![sharmavishal](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@sharmavishal](https://forum.flowable.org/u/sharmavishal)\
**Post date:** [April 6, 2018, 7:13am UTC](https://forum.flowable.org/t/create-a-rest-api-to-call-flowable-engine-and-api/1053/2 "2018-04-06T07:13:06Z")

</div>

@shweta i am also stuck with this but i want to admin instead of task so did you found any solution. If Yes can you share it with me. It would be very helpful.  
thanks in advance
