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 {
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("ids/entry")
public Response getAppIdByName(@QueryParam("id") Short id,
public Response getAppIdByName(@QueryParam("id") String id,
@QueryParam("name") String name) {
CoreService service = get(CoreService.class);
ApplicationId appId = null;
if (id != null) {
appId = service.getAppId(id);
appId = service.getAppId(Short.valueOf(id));
} else if (name != null) {
appId = service.getAppId(name);
}
......