コード例 #1
0
 @GET
 @Path("/getall")
 @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
 public String getAllDoctors(@QueryParam("practice") @DefaultValue("") String practiceName) {
   String response = null;
   try {
     response = WaitlistImpl.getWaitlist(practiceName, "", "");
   } catch (Throwable t) {
     t.printStackTrace();
   }
   return response;
 }
コード例 #2
0
 @GET
 @Path("/get")
 @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
 public String getDoctor(
     @QueryParam("practice") @DefaultValue("") String practiceName,
     @QueryParam("officeid") @DefaultValue("") String officeid,
     @QueryParam("doctorid") @DefaultValue("") String doctorid) {
   String response = null;
   try {
     response = WaitlistImpl.getWaitlist(practiceName, officeid, doctorid);
   } catch (Throwable t) {
     t.printStackTrace();
   }
   return response;
 }