deploy resource via curl

276 views
Skip to first unread message

Jan Galinski

unread,
Nov 19, 2015, 9:18:50 AM11/19/15
to camunda BPM users
Hi

I am trying to deploy a resource (dmn) from to the rest api running on my local machine (jboss distro 7.4.0-SNAPSHOT).

my Dir

/resources
- myDecision.dmn

I try:

curl -H "Content-Type: application/json" -X POST -d '{"deployment-name":"checkOrder"}' --data @myDecision.dmn  http://localhost:8080/engine-rest/engine/default/deployment/create


But get:

405 - The specified HTTP method is not allowed for the requested resource.


Can anyone provide a small example, how to use post with xml files from the cli?

Thank you

Jan

Sebastian Menski

unread,
Nov 19, 2015, 9:29:22 AM11/19/15
to camunda BPM users
Hi Jan,

this endpoint expects a multipart form data request.

curl -v http://localhost:8080/engine-rest/deployment/create -F deployment-name="test-deployment" -F table.dmn=@table.dmn

Cheers,
Sebastian

Jan Galinski

unread,
Nov 19, 2015, 9:34:02 AM11/19/15
to camunda BPM users
Wow, that was quick. And it even works :-)

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages