# openapi.api.SupportApi

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

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**createResponse**](SupportApi.md#createresponse) | **POST** /api/shop/support/response/{id} | 
[**createSupport**](SupportApi.md#createsupport) | **POST** /api/shop/support | 
[**getAllSupports**](SupportApi.md#getallsupports) | **GET** /api/shop/support | 
[**getSupport**](SupportApi.md#getsupport) | **GET** /api/shop/support/{slug} | 


# **createResponse**
> OkRes createResponse(id, supportResponseEntity)



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

final api = Openapi().getSupportApi();
final num id = 8.14; // num | 
final SupportResponseEntity supportResponseEntity = ; // SupportResponseEntity | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **num**|  | 
 **supportResponseEntity** | [**SupportResponseEntity**](SupportResponseEntity.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)

# **createSupport**
> OkRes createSupport(supportEntity)



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

final api = Openapi().getSupportApi();
final SupportEntity supportEntity = ; // SupportEntity | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **supportEntity** | [**SupportEntity**](SupportEntity.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)

# **getAllSupports**
> GetAllSupportsRes getAllSupports(page, limit, search, orderBy, order)



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

final api = Openapi().getSupportApi();
final num page = 8.14; // num | 
final num limit = 8.14; // num | 
final String search = search_example; // String | 
final String orderBy = orderBy_example; // String | 
final String order = order_example; // String | 

try {
    final response = api.getAllSupports(page, limit, search, orderBy, order);
    print(response);
} catch on DioError (e) {
    print('Exception when calling SupportApi->getAllSupports: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **page** | **num**|  | 
 **limit** | **num**|  | 
 **search** | **String**|  | [optional] 
 **orderBy** | **String**|  | [optional] 
 **order** | **String**|  | [optional] 

### Return type

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

# **getSupport**
> SupportEntity getSupport(slug)



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

final api = Openapi().getSupportApi();
final String slug = slug_example; // String | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **slug** | **String**|  | 

### Return type

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

