Software AG Products 10.11 | Administering Integration Server | Integration Server Administrator API | Expanding Responses
 
Expanding Responses
Some Administrator API responses contain multiple resources. For example, for the request GET /admin/package, Integration Server returns all packages. By default, the response will consist of an array of links
{
"packages": [
{
"name": "Default",
"url": "https://localhost:5543/admin/package/Default/"
},
{
"name": "WmAdmin",
"url": "https://localhost:5543/admin/package/WmAdmin/"
},
{
"name": "WmART",
"url": "https://localhost:5543/admin/package/WmART/"
},
{
"name": "WmAssetPublisher",
"url": "https://localhost:5543/admin/package/WmAssetPublisher/"
},
{
"name": "WmCloud",
"url": "https://localhost:5543/admin/package/WmCloud/"
},
etc...
]
}
Rather than getting an array of links, you can request that the Administrator API return the complete package resources by including the query parameter expand=true in the URL.
GET /admin/package?expand=true
In this case, the response will look something like this:
{
"packages": [
{
"packageName": "Default",
"loadok": "1",
"loaderr": "0",
"loadwarning": "0",
"version": "10.5.0.0.5015",
"build": "5015",
"description": "",
"patch_nums": "",
"jvm_version": "1.8",
"publisher": "Software AG",
"time": "",
"listACL": "Default",
"message": "",
"code": "1"
},
{
"packageName": "WmAdmin",
"loadok": "2",
"loaderr": "0",
"loadwarning": "0",
"startupServices": [
"wm.admin.controller:init"
],
"version": "10.5.0.0.5015",
"build": "5015",
"description": "Administrative API",
"patch_nums": null,
"jvm_version": "1.8",
"publisher": "Software AG",
"time": null,
"listACL": "Administrators",
"successors": [
"WmRoot;10.5.0"
],
"message": "",
"code": "1"
},
etc…
]
}