use of br.com.caelum.vraptor.Get in project mamute by caelum.
the class HibernateStatisticsController method show.
@Get("/alsjkdalkjsjdhadskj")
@CustomBrutauthRules(ModeratorOnlyRule.class)
public void show() {
Statistics statistics = sf.getStatistics();
result.include("s", statistics);
}
use of br.com.caelum.vraptor.Get 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();
}
Aggregations