# How to create custom rest api and make it as part of flowable-task

**URL:** https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788
**Category:** Flowable Engine
**Created:** [October 24, 2018, 7:45pm UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788 "2018-10-24T19:45:50Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![srikanth.gandrakota](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@srikanth.gandrakota](https://forum.flowable.org/u/srikanth.gandrakota)
#### Post date: [October 24, 2018, 7:45pm UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788/1 "2018-10-24T19:45:50Z")

</div>

Hi,

I want to create custom rest api and make it as part of flowable-task webb-inf/lib folder. Can some one please tell me in which package i need to place my rest controller so that it will be scanned my flowable-task.

Thank you,  
Srikanth

---

<div class="post-metadata">

### Author: ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)
#### Post date: [October 25, 2018, 6:12am UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788/2 "2018-10-25T06:12:15Z")

</div>

Hey Srikanth,

The flowable-task app is a Spring Boot application. Which means that you can create your own jar that would contain a spring boot auto configuration (registered through `spring.factories` in `META-INF`) and that auto configuration would scan your own packages and create your own rest endpoints.

Cheers,  
Filip

---

<div class="post-metadata">

### Author: ![srikanth.gandrakota](https://avatars.discourse-cdn.com/v4/letter/s/a8b319/32.png) [@srikanth.gandrakota](https://forum.flowable.org/u/srikanth.gandrakota)
#### Post date: [October 25, 2018, 6:35am UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788/3 "2018-10-25T06:35:43Z")

</div>

Hi,

Thank you for your reply. I have created a spring application and placed that jar in web-inf/lib folder of flowable-task. All my packages are scanned properly, but when i am trying to call my custom webservices, it is redirecting to Flowable-IDM logn page. How to bypass this and directly call my webservice with basic authentication.

I am unable to test my service from postman/restclient also. Kindly help me.

Thank you,  
Srikanth

---

<div class="post-metadata">

### Author: ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)
#### Post date: [October 25, 2018, 6:37am UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788/4 "2018-10-25T06:37:52Z")

</div>

I have already replied to you [here](https://forum.flowable.org/t/class-not-found-exception-with-java-delegate-classes/2755/14?u=filiphr). For the future please do not double post the same question as it is more difficult to find the correct answer.

---

<div class="post-metadata">

### Author: ![egemen](https://avatars.discourse-cdn.com/v4/letter/e/ecccb3/32.png) [@egemen](https://forum.flowable.org/u/egemen)
#### Post date: [February 28, 2019, 1:03pm UTC](https://forum.flowable.org/t/how-to-create-custom-rest-api-and-make-it-as-part-of-flowable-task/2788/5 "2019-02-28T13:03:53Z")

</div>

hi @filiphr,  
sorry distr you. I want to create my custom REST too. when i look to project, i am thinking Flowable-Rest package better placa. Am i write? if no, where i have to developt my custom Rest class.  
For example; i have mail sender service. but i dont know ID.(i dont need to know id), just i know mail TO object. How can i use this object and start process ?

thank yoı
