/** * Finds the RestMilestone matching the <code>id</code> * * @param id the id of the RestMilestone */ @REST(name = "milestones", method = RequestMethod.GET) public static RestMilestone getById(final int id) { final RestMilestone restMilestone = new RestMilestone(MilestoneManager.getById(id)); if (restMilestone.isNull()) { return null; } return restMilestone; }
/** Finds the list of all (valid) RestMilestone */ @REST(name = "milestones", method = RequestMethod.GET) public static RestMilestoneList getAll() { return new RestMilestoneList(MilestoneManager.getAll()); }