Import a dar package using the REST API with curl

Follow

Michael Deypalan -

Uploading a package to XLD server that is not in importablePackages is possible by using POST /package/upload/{file:.*?}rest call.

curl -u<username>:<password> -X POST -H "content-type:multipart/form-data" http://<xl-deploy-server>:<xl-deploy-port>/deployit/package/upload/Test.dar -F fileData=@/tmp/test1-1.0.dar

Have more questions? Submit a request