diff --git a/modules/apis/src/main/java/com/axway/apim/api/export/ExportAPI.java b/modules/apis/src/main/java/com/axway/apim/api/export/ExportAPI.java index e1c9f50c8..fa776d86b 100644 --- a/modules/apis/src/main/java/com/axway/apim/api/export/ExportAPI.java +++ b/modules/apis/src/main/java/com/axway/apim/api/export/ExportAPI.java @@ -289,17 +289,13 @@ public List getClientOrganizations() throws AppException { return organizations; } - public List getApplications() { + public List> getApplications() { if (actualAPIProxy.getApplications().isEmpty()) return Collections.emptyList(); - List exportApps = new ArrayList<>(); + List> exportApps = new ArrayList<>(); + Map applications = new HashMap<>(); + exportApps.add(applications); for (ClientApplication app : actualAPIProxy.getApplications()) { - ClientApplication exportApp = new ClientApplication(); - exportApp.setEnabled(app.isEnabled()); - exportApp.setName(app.getName()); - exportApp.setOrganization(null); - exportApp.setCredentials(null); - exportApp.setApiAccess(null); - exportApps.add(exportApp); + applications.put("name", app.getName()); } return exportApps; }