Make results of application codec and swagger doc desc consistent
Application codec returns permissions, requiredApps and features
in string format. However, based on swagger doc, the codec is
supposed to return array. This commit fixes the type inconsistent
issue raised in application rest api.
Change-Id: If47338b287518a981c98ff89ca543802579c7610
diff --git a/web/api/src/main/resources/definitions/Application.json b/web/api/src/main/resources/definitions/Application.json
index 9be4fe4..d55f7b9 100644
--- a/web/api/src/main/resources/definitions/Application.json
+++ b/web/api/src/main/resources/definitions/Application.json
@@ -53,7 +53,7 @@
"permissions": {
"type": "array",
"xml": {
- "name": "hosts",
+ "name": "permissions",
"wrapped": true
},
"items": {
diff --git a/web/api/src/main/resources/definitions/ApplicationPost.json b/web/api/src/main/resources/definitions/ApplicationPost.json
index 9be4fe4..d55f7b9 100644
--- a/web/api/src/main/resources/definitions/ApplicationPost.json
+++ b/web/api/src/main/resources/definitions/ApplicationPost.json
@@ -53,7 +53,7 @@
"permissions": {
"type": "array",
"xml": {
- "name": "hosts",
+ "name": "permissions",
"wrapped": true
},
"items": {
diff --git a/web/api/src/main/resources/definitions/Applications.json b/web/api/src/main/resources/definitions/Applications.json
index 32a225d..9e4f2eb 100644
--- a/web/api/src/main/resources/definitions/Applications.json
+++ b/web/api/src/main/resources/definitions/Applications.json
@@ -66,7 +66,7 @@
"permissions": {
"type": "array",
"xml": {
- "name": "hosts",
+ "name": "permissions",
"wrapped": true
},
"items": {