setmore_client 0.0.2+1 copy "setmore_client: ^0.0.2+1" to clipboard
setmore_client: ^0.0.2+1 copied to clipboard

An API client for the Setmore booking system using OpenAPI API client specification. View, Schedule, Book and Manage appointments directly from the API.

setmore_client (EXPERIMENTAL) #

This is a simple API

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

  • API version: 1.0.0-oas3.1
  • Generator version: 7.8.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: 1.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 #

  • AppointmentDto
  • AppointmentWithCustomerDto
  • AppointmentWithCustomerDtoCustomer
  • BookingapiAppointmentCreatePost200Response
  • BookingapiAppointmentCreatePost200ResponseData
  • BookingapiAppointmentsGet200Response
  • BookingapiAppointmentsGet200ResponseData
  • BookingapiCustomerCreatePost200Response
  • BookingapiCustomerCreatePost200ResponseData
  • BookingapiCustomerGet200Response
  • BookingapiCustomerGet200ResponseData
  • BookingapiServicesCategoriesCategoryKeyGet200Response
  • BookingapiServicesCategoriesCategoryKeyGet200ResponseData
  • BookingapiServicesCategoriesGet200Response
  • BookingapiServicesCategoriesGet200ResponseData
  • BookingapiServicesGet200Response
  • BookingapiServicesGet200ResponseData
  • BookingapiStaffsGet200Response
  • BookingapiStaffsGet200ResponseData
  • BookingapiUntestedAttributesForFetchingAppointmentsGet200Response
  • BookingapiUntestedAttributesForFetchingAppointmentsGet200ResponseData
  • CreateAppointmentRequestDto
  • CreateCustomerRequestDto
  • CustomerDetailsDto
  • CustomerDto
  • OOauth2TokenGet200Response
  • OOauth2TokenGet200ResponseData
  • ServiceCategoryDto
  • ServiceModelDto
  • StaffDto
  • TimeSlotDto
  • TimeSlotRequestDto
  • TokenDto

Documentation For Authorization #

Authentication schemes defined for the API:

BearerAuth #

  • Type: HTTP Bearer Token authentication (JWT)

Author #

1
likes
140
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

An API client for the Setmore booking system using OpenAPI API client specification. View, Schedule, Book and Manage appointments directly from the API.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

built_collection, built_value, dio, one_of, one_of_serializer

More

Packages that depend on setmore_client