cancel
Showing results for 
Search instead for 
Did you mean: 

How to use REST API to 'Upload Deployment' in Activiti 5.10?

stormsky
Champ in-the-making
Champ in-the-making
How to use REST API to "Upload Deployment" in Activiti 5.10?

this is the userguide: http://www.activiti.org/userguide/index.html#N12870,
but it doesnot tell me the parameters which i should to pass to the url.

i use "php-curl" to call the REST API,
will someone give me some examples ?


thank you all!
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
From the user guide:
using normal "html form upload" (enctype=multipart/form-data) in other words not a json-request. The deployment information is returned as a response if the deploy action succeeds.

There are no special POST-parameters needed, just a plain "multipart/form-data". Look at the docs of php-curl how to send file-data.

stormsky
Champ in-the-making
Champ in-the-making
From the user guide:
using normal "html form upload" (enctype=multipart/form-data) in other words not a json-request. The deployment information is returned as a response if the deploy action succeeds.

There are no special POST-parameters needed, just a plain "multipart/form-data". Look at the docs of php-curl how to send file-data.


thank you!
i have solved my problem.
actually, i got the problem of the curl http_code 417.
see here, http://www.khattam.info/417-expectation-failed-in-php-curl-while-submitting-multi-part-forms-2011-04...


thanks all!