When installing version 8 of cdd we are seeing that the actions against the API are failing by doing a POST. We are using the POST /releases/{releaseId}/activities and it fails with ERROR "Invalid json input".
The same API was working in CDD version 7 and stopped working in CDD version 8.
Release : 7.0.0, 8.0.0
Component : CONTINUOUS DELIVERY DIRECTOR
There is change in API from CDD 7.0 to CDD 8.0, with respect to the request body passed to the call /releases/{releaseId}/activities. The request body passed to the API in CDD version 8, isn't in correct format required and hence fails with the error.
Please find the change in request body from CDD 7.0 to CDD 8.0 below. Use the request body format of CDD 8.0 and the API will work as expected.
API : /releases/{releaseId}/activities
METHOD: POST
CDD 7.0 request body
{
"content": {
"className": "ActivityContentDto",
"contentValues": [
"test activity"
],
"contentTemplate": "manualContent"
},
"className": "ActivityDto"
}
CDD 8.0 request body
{
"content": {
"className": "ActivityContentDto",
"contentValues": {
"content": "test activity"
},
"contentTemplate": "manualContent"
},
"className": "ActivityDto"
}