# openapi.api.AppointmentConfigApi

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

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**find**](AppointmentConfigApi.md#find) | **GET** /api/shop-config/appointment/config | 
[**updateConfig**](AppointmentConfigApi.md#updateconfig) | **PUT** /api/shop-config/appointment/config | 


# **find**
> AppointmentConfig find()



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

final api = Openapi().getAppointmentConfigApi();

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

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

### Return type

[**AppointmentConfig**](AppointmentConfig.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)

# **updateConfig**
> OkRes updateConfig(appointmentConfig)



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

final api = Openapi().getAppointmentConfigApi();
final AppointmentConfig appointmentConfig = ; // AppointmentConfig | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **appointmentConfig** | [**AppointmentConfig**](AppointmentConfig.md)|  | 

### Return type

[**OkRes**](OkRes.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)

