Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 /** Finds the list of all (valid) RestMilestone */
 @REST(name = "milestones", method = RequestMethod.GET)
 public static RestMilestoneList getAll() {
   return new RestMilestoneList(MilestoneManager.getAll());
 }