added unit test
This commit is contained in:
@@ -47,7 +47,7 @@ public class PictureResource {
|
||||
@Path("evaluation/{id}")
|
||||
@Operation(summary = "Update evaluation for picture data to database")
|
||||
@ApiResponse(responseCode = "200", description = "Task successfully updated")
|
||||
public Response doUpdateTask(@PathParam("id") Long id, @QueryParam("evaluation") Integer value) {
|
||||
public Response doUpdateEvaluation(@PathParam("id") Long id, @QueryParam("evaluation") Integer value) {
|
||||
if(value == null || value < 1 || value >3) {
|
||||
return Response.status(Status.BAD_REQUEST).build();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user