コード例 #1
0
 @DELETE
 @Path("/delete/{waitlistid}")
 @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
 public String deleteDoctor(@PathParam("waitlistid") @DefaultValue("") String waitlistid) {
   String response = null;
   try {
     response = WaitlistImpl.deleteFromWaitlist(waitlistid);
   } catch (Throwable t) {
     t.printStackTrace();
   }
   return response;
 }
コード例 #2
0
 @GET
 @Path("/getbyid")
 @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
 public String getDoctorById(@QueryParam("waitlistid") @DefaultValue("") String waitlistid) {
   String response = null;
   try {
     response = WaitlistImpl.getWaitlistById(waitlistid);
   } catch (Throwable t) {
     t.printStackTrace();
   }
   return response;
 }
コード例 #3
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;
 }
コード例 #4
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;
 }