class TaskResource {

    @Operation(description =  "Change task")
    @PUT
    @Path("{id}")
    public void updateTask(@PathParam("id") Integer id, Task task) {
        if (!task.getId().equals(id)) {
            throw new IllegalStateException("Id from path and content must be the same");
        }
        taskService.addOrUpdate(task);
    }

    public  TaskResource(TaskService taskService, MetricRegistry metricRegistry);

}