apiEndpointUrl function

String apiEndpointUrl(
  1. String baseUrl,
  2. ApiEndpoint endpoint
)

Implementation

String apiEndpointUrl(String baseUrl, ApiEndpoint endpoint) {
  switch (endpoint) {
    case ApiEndpoint.login:
      return '$baseUrl/oauth/token';
    case ApiEndpoint.addContact:
      return '$baseUrl/api/$API_VERSION/customer/addcontact';
    case ApiEndpoint.contactsList:
      return '$baseUrl/api/$API_VERSION/customer/contacts';
    case ApiEndpoint.scheduleMeeting:
      return '$baseUrl/api/$API_VERSION/meeting/schedulemeeting';
    case ApiEndpoint.getJwt:
      return '$baseUrl/api/$API_VERSION/getjwt';
    case ApiEndpoint.upcomingMeeting:
      return '$baseUrl/api/$API_VERSION/meeting/upcomingmeetings';
    case ApiEndpoint.timezone:
      return '$baseUrl/api/$API_VERSION/getTimezone';
    case ApiEndpoint.recordingsList:
      return '$baseUrl/api/$API_VERSION/customer/videorecordinglist';
    case ApiEndpoint.editMeeting:
      return '$baseUrl/api/$API_VERSION/meeting/editmeeting';
    case ApiEndpoint.editContact:
      return '$baseUrl/api/$API_VERSION/customer/editcontact';
    case ApiEndpoint.viewMeeting:
      return '$baseUrl/api/$API_VERSION/meeting/viewmeeting';
    case ApiEndpoint.archiveMeeting:
        return '$baseUrl/api/$API_VERSION/meeting/archivemeeting';
    case ApiEndpoint.missedMeetings:
        return '$baseUrl/api/$API_VERSION/meeting/missedmeetings';
    case ApiEndpoint.completedMeetings:
        return '$baseUrl/api/$API_VERSION/meeting/completedmeeting';
    case  ApiEndpoint.userDetails:
        return '$baseUrl/api/$API_VERSION/customer/user_details';
    case ApiEndpoint.refreshToken:
        return '$baseUrl/oauth/token';
  }
}