class TimerResource implements Resource {

	@POST
	@Path("timers/new")
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.APPLICATION_JSON)
	public Timer newTimer(Timer timer) {
		timer.setLink(createTimerPath(timer.getId()));
		return this.logic.setTimer(timer.getTimerTime());
	}

}