Hello dear enaio-development Team,
We would like to push updates for our microservices from the build-pipeline with, for instance, curl. This should be possible with a post request with multipart/form-data content-type to the /manage/apps/sam
The curl command may look like this:
curl -X POST -F data=@path_to_json -F @path_to_microservice.jar 'http://yourserver/manage/apps/sam'
The json file contains a single line: {"command": "update"}
Such Post-Requests from Postman work, but curl or Invoke-WebRequest (Powershell cmdlet) return 415 (see below)
Servicewatcher API Swagger also throws an error:
{
"timestamp": 1547647004842,
"status": 415,
"error": "Unsupported Media Type",
"exception": "org.springframework.web.HttpMediaTypeNotSupportedException",
"message": "Content type 'application/octet-stream' not supported",
"path": "/manage/apps/sam"
}
Could you please help with this?
Best wishes,
Umar