Curl or REST Client to start a new process instance?

Hi folks,

I would like to better understand what is the exact difference between curl and a REST Client when you have deployed a process definition and you want to start a new process instance in it.

Which is the worker console mentioned in the paragraph describes curl here Deploy the Process (3/6) | docs.camunda.org and where must I write the POST request in this case ?

Thanks a lot in advance,
Steve

Hello @steftriant

The curl and REST Client are the two different ways to consume REST api. You can use either of them, and there is no difference with respect to the behaviour / output.

The worker console mentioned in https://docs.camunda.org/get-started/quick-start/deploy/#a-curl refers to the command line interface where in curl command is executed.

The curl provides an option to provide POST request body. In the given example https://docs.camunda.org/get-started/quick-start/deploy/#a-curl, post request body is provided after -d option.

Does it help you?

Best,
Garima

1 Like

Hi again @garima, many thanks for your feedback and wish a Happy New Year :smiley:

I completely understood these 2 ways so as to start a new process instance inside a deployed process definition.

But in any case, I understood that I need to have (copied and pasted) the generated SNAPSHOT (folder + war file) from the “target” folder of my workspace to the “webapps” folder of my server so as to get a successful server response from my client’s request :wink:

Best Regards,
Steve

Hi @steftriant

Wish you a very happy new year too !! I am happy to help :slight_smile:

And yes are right regarding following:

But in any case, I understood that I need to have (copied and pasted) the generated SNAPSHOT (folder + war file) from the “target” folder of my workspace to the “webapps” folder of my server so as to get a successful server response from my client’s request :wink:

1 Like