Class TaskAntsAppointmentRest
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.appointmentants.service.rest.TaskAntsAppointmentRest
Class containing all the ANTS REST calls
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddAntsAppointment(String addAppointmentUrl, String token) Add an appointment to the ANTS database through their API, by using a POST methodstatic StringdeleteAntsAppointment(String deleteAppointmentUrl, String token) Delete an appointment from the ANTS database with their API, by using a DELETE methodstatic StringgetAntsAppointmentStatus(String getStatusUrl, String token) Get the status of 1 or more appointments from the ANTS database through their API, by using a GET method
-
Method Details
-
addAntsAppointment
public static String addAntsAppointment(String addAppointmentUrl, String token) throws fr.paris.lutece.util.httpaccess.HttpAccessException Add an appointment to the ANTS database through their API, by using a POST method- Parameters:
addAppointmentUrl- The URL used to make the REST calltoken- The API key to use in the REST call- Returns:
- The content of the call's response
- Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException
-
deleteAntsAppointment
public static String deleteAntsAppointment(String deleteAppointmentUrl, String token) throws fr.paris.lutece.util.httpaccess.HttpAccessException Delete an appointment from the ANTS database with their API, by using a DELETE method- Parameters:
deleteAppointmentUrl- The URL used to make the REST calltoken- The API key to use in the REST call- Returns:
- The content of the call's response
- Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException
-
getAntsAppointmentStatus
public static String getAntsAppointmentStatus(String getStatusUrl, String token) throws fr.paris.lutece.util.httpaccess.HttpAccessException Get the status of 1 or more appointments from the ANTS database through their API, by using a GET method- Parameters:
getStatusUrl- The URL used to make the REST calltoken- The API key to use in the REST call- Returns:
- The content of the call's response
- Throws:
fr.paris.lutece.util.httpaccess.HttpAccessException
-