From 6489ea116892681b41d27c6b5b0d4f49b1caf381 Mon Sep 17 00:00:00 2001 From: harshanL Date: Mon, 15 Dec 2014 09:17:20 +0530 Subject: [PATCH] Added json response to license. --- .../jax-rs/src/main/java/cdm/api/android/Authentication.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/Authentication.java b/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/Authentication.java index 9f04a31105..9b81095ac8 100644 --- a/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/Authentication.java +++ b/product/modules/agents/android/jax-rs/src/main/java/cdm/api/android/Authentication.java @@ -39,7 +39,10 @@ public class Authentication { @POST @Path("/device/license") + @Produces("application/json") public String getLicense() { - return "License Agreement"; + JsonObject result = new JsonObject(); + result.addProperty("licenseText", "License Agreement"); + return result.toString(); } }