Fix issues in swagger definition

feature/appm-store/pbac
lasanthaDLPDS 7 years ago
parent 976d0ad60d
commit b45d11bfdc

@ -260,10 +260,9 @@ public interface ApplicationManagementAPI {
message = "OK. \n Successfully created an application.", message = "OK. \n Successfully created an application.",
response = Application.class), response = Application.class),
@ApiResponse( @ApiResponse(
code = 304, code = 400,
message = "Not Modified. \n " + message = "Bad Request. \n " +
"Empty body because the client already has the latest version of the requested " "Application creating payload contains unacceptable or vulnerable data"),
+ "resource."),
@ApiResponse( @ApiResponse(
code = 500, code = 500,
message = "Internal Server Error. \n Error occurred while getting the application list.", message = "Internal Server Error. \n Error occurred while getting the application list.",

@ -98,8 +98,6 @@ public class ApplicationManagementAPIImpl implements ApplicationManagementAPI {
} }
return Response.status(Response.Status.OK).entity(application).build(); return Response.status(Response.Status.OK).entity(application).build();
} catch (NotFoundException e) {
return Response.status(Response.Status.NOT_FOUND).build();
} catch (ApplicationManagementException e) { } catch (ApplicationManagementException e) {
log.error("Error occurred while getting application with the uuid " + appType, e); log.error("Error occurred while getting application with the uuid " + appType, e);
return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR); return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR);

Loading…
Cancel
Save