fixed the issue with formatting

master
Ravindu Lakshan 2 years ago
parent 2f637cbc3f
commit 2bc90b1746

@ -747,9 +747,6 @@ public interface ApplicationManagementPublisherAPI {
@ApiResponse( @ApiResponse(
code = 409, code = 409,
message = "CONFLICT. \n Application exists"), message = "CONFLICT. \n Application exists"),
@ApiResponse(
code = 411,
message = "LENGTH_REQUIRED. \n Invalid application name length"),
@ApiResponse( @ApiResponse(
code = 400, code = 400,
message = "Bad Request. \n Found invalid device type with the request."), message = "Bad Request. \n Found invalid device type with the request."),

@ -376,7 +376,7 @@ public class ApplicationManagementPublisherAPIImpl implements ApplicationManagem
if (appName.length()>20) { if (appName.length()>20) {
String msg = "Invalid app name, maximum length of the application name should be 20 characters."; String msg = "Invalid app name, maximum length of the application name should be 20 characters.";
log.error(msg); log.error(msg);
return Response.status(Response.Status.LENGTH_REQUIRED).build(); return Response.status(Response.Status.BAD_REQUEST).build();
} }
ApplicationManager applicationManager = APIUtil.getApplicationManager(); ApplicationManager applicationManager = APIUtil.getApplicationManager();
if (applicationManager.isExistingAppName(appName, deviceType)) { if (applicationManager.isExistingAppName(appName, deviceType)) {

Loading…
Cancel
Save