# openapi.api.AppointmentHolidayApi

## Load the API package
```dart
import 'package:openapi/api.dart';
```

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create**](AppointmentHolidayApi.md#create) | **POST** /api/shop-config/appointment/holiday | 
[**delete**](AppointmentHolidayApi.md#delete) | **DELETE** /api/shop-config/appointment/holiday/{id} | 
[**findUpcomingHolidays**](AppointmentHolidayApi.md#findupcomingholidays) | **GET** /api/shop-config/appointment/holiday | 


# **create**
> AppointmentHoliday create(appointmentHoliday)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getAppointmentHolidayApi();
final AppointmentHoliday appointmentHoliday = ; // AppointmentHoliday | 

try {
    final response = api.create(appointmentHoliday);
    print(response);
} catch on DioError (e) {
    print('Exception when calling AppointmentHolidayApi->create: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **appointmentHoliday** | [**AppointmentHoliday**](AppointmentHoliday.md)|  | 

### Return type

[**AppointmentHoliday**](AppointmentHoliday.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **delete**
> OkRes delete(id)



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getAppointmentHolidayApi();
final num id = 8.14; // num | 

try {
    final response = api.delete(id);
    print(response);
} catch on DioError (e) {
    print('Exception when calling AppointmentHolidayApi->delete: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **num**|  | 

### Return type

[**OkRes**](OkRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **findUpcomingHolidays**
> UpComingHolidaysRes findUpcomingHolidays()



### Example
```dart
import 'package:openapi/api.dart';

final api = Openapi().getAppointmentHolidayApi();

try {
    final response = api.findUpcomingHolidays();
    print(response);
} catch on DioError (e) {
    print('Exception when calling AppointmentHolidayApi->findUpcomingHolidays: $e\n');
}
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**UpComingHolidaysRes**](UpComingHolidaysRes.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

