# openapi.api.SuperAdminProductTypesApi

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

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

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


# **create**
> ProductType create(productType)



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

final api = Openapi().getSuperAdminProductTypesApi();
final ProductType productType = ; // ProductType | 

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **productType** | [**ProductType**](ProductType.md)|  | 

### Return type

[**ProductType**](ProductType.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**
> FindAllProductTypeRes findAll(type)



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

final api = Openapi().getSuperAdminProductTypesApi();
final String type = type_example; // String | 

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

### Parameters

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

### Return type

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

