@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; }
@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; }
@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; }
@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; }