setmore_client (EXPERIMENTAL)

This is a simple API

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.DartDioClientCodegen

Requirements

Installation & Usage

pub.flutter-io.cn

To use the package from pub.flutter-io.cn, please include the following in pubspec.yaml

dependencies:
  setmore_client: 3.0.0

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  setmore_client:
    git:
      url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
      #ref: main

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  setmore_client:
    path: /path/to/setmore_client

Getting Started

Please follow the installation procedure and then run the following:

import 'package:setmore_client/setmore_client.dart';


final api = SetmoreClient().getAppointmentsApi();
final CreateAppointmentRequestDto createAppointmentRequestDto = ; // CreateAppointmentRequestDto | 

try {
    final response = await api.bookingapiAppointmentCreatePost(createAppointmentRequestDto);
    print(response);
} catch on DioException (e) {
    print("Exception when calling AppointmentsApi->bookingapiAppointmentCreatePost: $e\n");
}

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/AHALMEHULGITHUB/Setmore/1.0.0

Class Method HTTP request Description
AppointmentsApi bookingapiAppointmentCreatePost POST /bookingapi/appointment/create Create an appointment
AppointmentsApi bookingapiAppointmentsAppointmentKeyLabelPut PUT /bookingapi/appointments/{appointmentKey}/label Update an appointment label
AppointmentsApi bookingapiAppointmentsGet GET /bookingapi/appointments Fetch appointments by date range
AppointmentsApi bookingapiUntestedAttributesForFetchingAppointmentsGet GET /bookingapi/untested-attributes-for-fetching-appointments Fetch appointments by date range
AuthApi oOauth2TokenGet GET /o/oauth2/token Swap refresh token for access token
CustomersApi bookingapiCustomerCreatePost POST /bookingapi/customer/create Create a customer
CustomersApi bookingapiCustomerGet GET /bookingapi/customer Get customer details
SevicesApi bookingapiServicesCategoriesCategoryKeyGet GET /bookingapi/services/categories/{categoryKey} Fetch Service by Category Key
SevicesApi bookingapiServicesCategoriesGet GET /bookingapi/services/categories Fetch Service Categories
SevicesApi bookingapiServicesGet GET /bookingapi/services Fetch all services
StaffApi bookingapiStaffsGet GET /bookingapi/staffs Fetch all staff
TimeSlotsApi bookingapiSlotsPost POST /bookingapi/slots Get all available time slots

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth

  • Type: HTTP Bearer Token authentication (JWT)

Author

you@your-company.com

Libraries

setmore_client