Swagger documentation for CDA incorrect

book

Article ID: 209290

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When the swagger for CDA is imported to be used in other application (like Postman or other), it appeared the model was not correct leading to faulty REST requests.

 

The following request:


http://<host>:<port>/ara/api/data/v1/workflows?application.ids=1215

 

... results in an array of workflows:

 

{
"has_more"false,
"total"10,
"data": [
        {
"id"8870330,
"name""SMT Generic",
"description"null,
"archived"false,
"owner": {
"id"1735550,
"name""2000/WES7BB/DE",
"type""User"
            },
"folder": {
"id"1213,
"name""PLAYGROUND"
            },
"custom_type": {
"id"356,
"name""Install",
"version""1.0.0 PCK.A
 
But in the documentation there is only one workflow in the response: 
 
{  "name": null,  "id": 12345,  "description": "This is a description",  "archived": false,  "owner": null,  "folder": {    "name": "DEV"  },  "custom_type": {    "name": "Install"  },  "custom": {    "connection_url": "http://myserver.at",    "connection_port": 80  },  "application": {    "name": "Demo App"  },  "dynamic": {    "/server/url": "http://myserver.at",    "/server/port": "80"  },  "overrides": {    "application": {      "/ns1/prop1": "value1",      "/server/port": "80"    },    "components": {      "tomcat": {        "/server/url": "http://myserver.at",        "/server/port": "80"      },      "iis": {        "/ns1/prop1": "test1",        "/ns1/prop2": "orig2"      }    }  }}

Environment

Release : 12.3

Component :  Release.Manager

Resolution

Solution:

Update to a fix version listed below or a newer version if available.


Fix version:

Component(s):  Release.Manager 10.0.5 - Available