Jian Li

Bugfix: fix the swagger broken issue caused by unsupported data type

Current implementation of SwaggerMojo does not support the data type
other than string, int, long and boolean.
This commit temporarily fix the issue on generating swagger doc.
Eventually, we need to augment SwaggerMojo to support more data type
including other primitive types and even Object data types.

Change-Id: I5cb69ea6af7faecfc19660c4bbf619c3d85508f3
...@@ -176,12 +176,12 @@ public class ApplicationsWebResource extends AbstractWebResource { ...@@ -176,12 +176,12 @@ public class ApplicationsWebResource extends AbstractWebResource {
176 @GET 176 @GET
177 @Produces(MediaType.APPLICATION_JSON) 177 @Produces(MediaType.APPLICATION_JSON)
178 @Path("ids/entry") 178 @Path("ids/entry")
179 - public Response getAppIdByName(@QueryParam("id") Short id, 179 + public Response getAppIdByName(@QueryParam("id") String id,
180 @QueryParam("name") String name) { 180 @QueryParam("name") String name) {
181 CoreService service = get(CoreService.class); 181 CoreService service = get(CoreService.class);
182 ApplicationId appId = null; 182 ApplicationId appId = null;
183 if (id != null) { 183 if (id != null) {
184 - appId = service.getAppId(id); 184 + appId = service.getAppId(Short.valueOf(id));
185 } else if (name != null) { 185 } else if (name != null) {
186 appId = service.getAppId(name); 186 appId = service.getAppId(name);
187 } 187 }
......