class TaskResource {

    @Operation(summary = "Get single task by id", description =  "Get single task by id")
    @GET
    @Path("{id}")
    public Response getTask(@PathParam("id") Integer id) {
        Task task = taskService.getById(id);
        return task == null ? Response.status(Status.NOT_FOUND).build() : Response.ok(task).build();
    }

    public  TaskResource(TaskService taskService, MetricRegistry metricRegistry);

}