# openapi.api.SuperAdminFeaturesApi

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

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**create**](SuperAdminFeaturesApi.md#create) | **POST** /api/admin/super-admin/feature | 
[**findAll**](SuperAdminFeaturesApi.md#findall) | **GET** /api/admin/super-admin/feature | 


# **create**
> Feature create(feature)



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

final api = Openapi().getSuperAdminFeaturesApi();
final Feature feature = ; // Feature | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **feature** | [**Feature**](Feature.md)|  | 

### Return type

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

# **findAll**
> FindAllFeatureRes findAll(type, productTypeId)



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

final api = Openapi().getSuperAdminFeaturesApi();
final GetAllFeatureTypeEnum type = ; // GetAllFeatureTypeEnum | type of features
final num productTypeId = 8.14; // num | product type id

try {
    final response = api.findAll(type, productTypeId);
    print(response);
} catch on DioError (e) {
    print('Exception when calling SuperAdminFeaturesApi->findAll: $e\n');
}
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **type** | [**GetAllFeatureTypeEnum**](.md)| type of features | [optional] 
 **productTypeId** | **num**| product type id | [optional] 

### Return type

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

