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.",
response = Application.class),
@ApiResponse(
code = 304,
message = "Not Modified. \n " +
"Empty body because the client already has the latest version of the requested "
+ "resource."),
code = 400,
message = "Bad Request. \n " +
"Application creating payload contains unacceptable or vulnerable data"),
@ApiResponse(
code = 500,
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();
} catch (NotFoundException e) {
return Response.status(Response.Status.NOT_FOUND).build();
} catch (ApplicationManagementException e) {
log.error("Error occurred while getting application with the uuid " + appType, e);
return APIUtil.getResponse(e, Response.Status.INTERNAL_SERVER_ERROR);

Loading…
Cancel
Save