@Path("/{year:\\d{4}}/{month:\\d{1,2}}")
public Response activitiesForYearMonth(@PathParam("year") int year, @PathParam("month") int month)
{
DateMidnight yearMonth = new DateMidnight(year, month, 1, settings.get().getTimeZone());
Activities activities = activitiesConverter.toModel(yearMonth, MONTH,
repository.findByYearMonth(yearMonth.year().get(), yearMonth.monthOfYear().get()));
return addLinksForYearMonth(activities, yearMonth);
}
@GET
@Produces(TEXT_PLAIN)