listAppointmentTypesForUserWithHttpInfo method

Future<Response> listAppointmentTypesForUserWithHttpInfo(
  1. String groupId,
  2. String userId,
  3. int startDate,
  4. int endDate,
)

List Calendar Item types for a provided group id and user id

Returns a list of Calendar Item types. In order to be returned, the Calendar Item Type must be linked to a time table enclosed in an Agenda for which an anonymous right has been set (a Right with read permission and null user)

Note: This method returns the HTTP Response.

Parameters:

  • String groupId (required): Healthcare parties group id

  • String userId (required): Healthcare party user id

  • int startDate (required):

  • int endDate (required):

Implementation

Future<Response> listAppointmentTypesForUserWithHttpInfo(String groupId, String userId, int startDate, int endDate,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/aa/appointmentType/inGroup/{groupId}/forUser/{userId}'
      .replaceAll('{groupId}', groupId)
      .replaceAll('{userId}', userId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'startDate', startDate));
    queryParams.addAll(_queryParams('', 'endDate', endDate));

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}