# managerapi.api.SectionApi ## Load the API package ```dart import 'package:managerapi/api.dart'; ``` All URIs are relative to *http://192.168.31.96* Method | HTTP request | Description ------------- | ------------- | ------------- [**sectionCreate**](SectionApi.md#sectioncreate) | **POST** /api/Section | [**sectionDelete**](SectionApi.md#sectiondelete) | **DELETE** /api/Section/{id} | [**sectionGet**](SectionApi.md#sectionget) | **GET** /api/Section | [**sectionGetAllSectionSubSections**](SectionApi.md#sectiongetallsectionsubsections) | **GET** /api/Section/{id}/subsections | [**sectionGetDetail**](SectionApi.md#sectiongetdetail) | **GET** /api/Section/{id} | [**sectionGetFromConfiguration**](SectionApi.md#sectiongetfromconfiguration) | **GET** /api/Section/configuration/{id} | [**sectionUpdate**](SectionApi.md#sectionupdate) | **PUT** /api/Section | # **sectionCreate** > SectionDTO sectionCreate(sectionDTO) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final sectionDTO = SectionDTO(); // SectionDTO | try { final result = api_instance.sectionCreate(sectionDTO); print(result); } catch (e) { print('Exception when calling SectionApi->sectionCreate: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **sectionDTO** | [**SectionDTO**](SectionDTO.md)| | ### Return type [**SectionDTO**](SectionDTO.md) ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionDelete** > String sectionDelete(id) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final id = id_example; // String | try { final result = api_instance.sectionDelete(id); print(result); } catch (e) { print('Exception when calling SectionApi->sectionDelete: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | ### Return type **String** ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionGet** > List sectionGet() ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); try { final result = api_instance.sectionGet(); print(result); } catch (e) { print('Exception when calling SectionApi->sectionGet: $e\n'); } ``` ### Parameters This endpoint does not need any parameter. ### Return type [**List**](SectionDTO.md) ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionGetAllSectionSubSections** > List sectionGetAllSectionSubSections(id) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final id = id_example; // String | try { final result = api_instance.sectionGetAllSectionSubSections(id); print(result); } catch (e) { print('Exception when calling SectionApi->sectionGetAllSectionSubSections: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | ### Return type [**List**](Object.md) ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionGetDetail** > Object sectionGetDetail(id) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final id = id_example; // String | try { final result = api_instance.sectionGetDetail(id); print(result); } catch (e) { print('Exception when calling SectionApi->sectionGetDetail: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | ### Return type [**Object**](Object.md) ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionGetFromConfiguration** > List sectionGetFromConfiguration(id) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final id = id_example; // String | try { final result = api_instance.sectionGetFromConfiguration(id); print(result); } catch (e) { print('Exception when calling SectionApi->sectionGetFromConfiguration: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| | ### Return type [**List**](SectionDTO.md) ### Authorization [bearer](../README.md#bearer) ### 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) # **sectionUpdate** > SectionDTO sectionUpdate(sectionDTO) ### Example ```dart import 'package:managerapi/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('bearer').accessToken = 'YOUR_ACCESS_TOKEN'; final api_instance = SectionApi(); final sectionDTO = SectionDTO(); // SectionDTO | try { final result = api_instance.sectionUpdate(sectionDTO); print(result); } catch (e) { print('Exception when calling SectionApi->sectionUpdate: $e\n'); } ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **sectionDTO** | [**SectionDTO**](SectionDTO.md)| | ### Return type [**SectionDTO**](SectionDTO.md) ### Authorization [bearer](../README.md#bearer) ### 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)