java.lang.Object
fr.paris.lutece.plugins.appointment.modules.rest.rs.AppointmentRest

@ApplicationScoped @Path("appointment") public class AppointmentRest extends Object
  • Field Details

  • Constructor Details

    • AppointmentRest

      public AppointmentRest()
  • Method Details

    • getAvailableTimeSlots

      @GET @Path("/api/availableTimeSlots") @Produces("application/json") public jakarta.ws.rs.core.Response getAvailableTimeSlots(@Context jakarta.servlet.http.HttpServletRequest request, @QueryParam("meeting_point_ids") List<String> appointementIds, @QueryParam("start_date") String startDate, @QueryParam("end_date") String endDate, @QueryParam("reason") String reason, @QueryParam("documents_number") String documentsNumber)
      Get the free slots of the requested meeting points between two dates.
      Parameters:
      request - the request
      appointementIds - the meeting point ids
      startDate - the first day, yyyy-MM-dd
      endDate - the last day, yyyy-MM-dd
      reason - the reason of the appointment
      documentsNumber - the number of documents, one by default
      Returns:
      the slots of each meeting point, 401 without the hub token, 422 on invalid parameters, 503 when the search engine cannot be reached
    • getManagedMeetingPoints

      @GET @Path("/api/getManagedMeetingPoints") @Produces("application/json") public jakarta.ws.rs.core.Response getManagedMeetingPoints(@Context jakarta.servlet.http.HttpServletRequest request)
      Get the meeting points managed by the site, one per appointment form indexed in the search engine.
      Parameters:
      request - the request
      Returns:
      the meeting points, 401 without the hub token, 503 when the search engine cannot be reached