getAppointmentsBetweenDatesWithHttpInfo method

Future<Response> getAppointmentsBetweenDatesWithHttpInfo(
  1. DateTime from,
  2. DateTime to, {
  3. Object? authorization,
})

Performs an HTTP 'GET /api/v1/Appointments/{from}/{to}' operation and returns the Response. Parameters:

Implementation

Future<Response> getAppointmentsBetweenDatesWithHttpInfo(
  DateTime from,
  DateTime to, {
  Object? authorization,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/Appointments/{from}/{to}'
      .replaceAll('{from}', from.toString())
      .replaceAll('{to}', to.toString());

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

  headerParams[r'authorization'] = parameterToString(authorization);

  const authNames = <String>[];
  const contentTypes = <String>[];

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