diff --git a/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DeviceManagementRequestsJson.java b/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DeviceManagementRequestsJson.java index a7a7ea7f0c2..a4df8c90320 100644 --- a/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DeviceManagementRequestsJson.java +++ b/rest-api/resources/src/main/java/org/eclipse/kapua/app/api/resources/v1/resources/DeviceManagementRequestsJson.java @@ -59,8 +59,8 @@ public class DeviceManagementRequestsJson extends AbstractKapuaResource implemen * @throws KapuaException Whenever something bad happens. See specific {@link KapuaService} exceptions. */ @POST - @Consumes({ MediaType.APPLICATION_JSON }) - @Produces({ MediaType.APPLICATION_JSON }) + @Consumes({MediaType.APPLICATION_JSON}) + @Produces({MediaType.APPLICATION_JSON}) public JsonGenericResponseMessage sendRequest( @PathParam("scopeId") ScopeId scopeId, @PathParam("deviceId") EntityId deviceId, diff --git a/service/device/api/src/main/java/org/eclipse/kapua/service/device/management/message/KapuaAppChannel.java b/service/device/api/src/main/java/org/eclipse/kapua/service/device/management/message/KapuaAppChannel.java index 2187d2ae0f6..4f86788c14c 100644 --- a/service/device/api/src/main/java/org/eclipse/kapua/service/device/management/message/KapuaAppChannel.java +++ b/service/device/api/src/main/java/org/eclipse/kapua/service/device/management/message/KapuaAppChannel.java @@ -12,6 +12,8 @@ *******************************************************************************/ package org.eclipse.kapua.service.device.management.message; +import javax.xml.bind.annotation.XmlElement; + /** * Kapua application message channel definition.
* This object defines the common channel behavior for a Kapua request or response message.
@@ -26,6 +28,7 @@ public interface KapuaAppChannel extends KapuaControlChannel { * * @return */ + @XmlElement(name = "appName") KapuaAppProperties getAppName(); /** @@ -40,6 +43,7 @@ public interface KapuaAppChannel extends KapuaControlChannel { * * @return */ + @XmlElement(name = "version") KapuaAppProperties getVersion(); /**