use of br.com.caelum.example.model.Item in project restfulie-java by caelum.
the class ItemsController method show.
@Get
@Path("/items/{id}")
public void show(int id) {
Item item = database.get(id);
result.use(representation()).from(item).serialize();
}