class TaskResource {

    @Operation(description =  "Add task")
    @POST
    public Response addTask(Task task) {
        taskService.addOrUpdate(task);
        URI taskURI = uriInfo.getRequestUriBuilder().path(TaskResource.class, "getTask").build(task.getId());
        return Response.created(taskURI).build();
    }

    public  TaskResource(TaskService taskService, MetricRegistry metricRegistry);

}