setmore_client 1.0.0 copy "setmore_client: ^1.0.0" to clipboard
setmore_client: ^1.0.0 copied to clipboard

Setmore OpenAPI client

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 #

  • AppointmentDto
  • AppointmentWithCustomerDto
  • AppointmentWithCustomerDtoCustomer
  • BookingapiAppointmentCreatePost200Response
  • BookingapiAppointmentCreatePost200ResponseData
  • BookingapiAppointmentsAppointmentKeyLabelPut200Response
  • BookingapiAppointmentsGet200Response
  • BookingapiAppointmentsGet200ResponseData
  • BookingapiCustomerCreatePost200Response
  • BookingapiCustomerCreatePost200ResponseData
  • BookingapiCustomerGet200Response
  • BookingapiCustomerGet200ResponseData
  • BookingapiServicesCategoriesGet200Response
  • BookingapiServicesCategoriesGet200ResponseData
  • 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 #

you@your-company.com

1
likes
120
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Setmore OpenAPI client

Documentation

API reference

License

Unlicense (license)

Dependencies

copy_with_extension, dio, json_annotation

More

Packages that depend on setmore_client