Class AppointmentRest
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.rest.rs.AppointmentRest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetAvailableTimeSlots(jakarta.servlet.http.HttpServletRequest request, List<String> appointementIds, String startDate, String endDate, String reason, String documentsNumber) Get the free slots of the requested meeting points between two dates.jakarta.ws.rs.core.ResponsegetManagedMeetingPoints(jakarta.servlet.http.HttpServletRequest request) Get the meeting points managed by the site, one per appointment form indexed in the search engine.
-
Field Details
-
SOLR_EXCEPTION
- See Also:
-
JSON_EXCEPTION
- See Also:
-
-
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 requestappointementIds- the meeting point idsstartDate- the first day, yyyy-MM-ddendDate- the last day, yyyy-MM-ddreason- the reason of the appointmentdocumentsNumber- 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
-