# XgeneCloud.CofmenuApi

All URIs are relative to *http://localhost:8080/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addcofMenu**](CofmenuApi.md#addcofMenu) | **POST** /api/v1/cof_menu | Add a new cof_menu
[**bulkcofMenuInsert**](CofmenuApi.md#bulkcofMenuInsert) | **POST** /api/v1/cof_menu/bulk | Bulk cof_menu insert
[**checkcofMenuExists**](CofmenuApi.md#checkcofMenuExists) | **GET** /api/v1/cof_menu/{cof_menuId}/exists | Check cof_menu with provided ID exists
[**cofMenuAggregate**](CofmenuApi.md#cofMenuAggregate) | **GET** /api/v1/cof_menu/aggregate/{columnName} | Get first one from filtered data
[**cofMenuDistinct**](CofmenuApi.md#cofMenuDistinct) | **GET** /api/v1/cof_menu/distinct/{columnName} | Get first one from filtered data
[**cofMenuDistribution**](CofmenuApi.md#cofMenuDistribution) | **GET** /api/v1/cof_menu/distribution/{columnName} | 
[**cofMenuGroupByColumn**](CofmenuApi.md#cofMenuGroupByColumn) | **GET** /api/v1/cof_menu/groupby/{columnName} | Group by column
[**deletecofMenu**](CofmenuApi.md#deletecofMenu) | **DELETE** /api/v1/cof_menu/bulk | Deletes a cof_menu
[**deletecofMenu_0**](CofmenuApi.md#deletecofMenu_0) | **DELETE** /api/v1/cof_menu/{cof_menuId} | Deletes a cof_menu
[**findOnecofMenu**](CofmenuApi.md#findOnecofMenu) | **GET** /api/v1/cof_menu/findOne | Get first one from filtered data
[**getcofMenu**](CofmenuApi.md#getcofMenu) | **GET** /api/v1/cof_menu | Get list
[**getcofMenuById**](CofmenuApi.md#getcofMenuById) | **GET** /api/v1/cof_menu/{cof_menuId} | Find cof_menu by ID
[**getcofMenuCount**](CofmenuApi.md#getcofMenuCount) | **GET** /api/v1/cof_menu/count | Get cof_menu count
[**updatecofMenu**](CofmenuApi.md#updatecofMenu) | **PUT** /api/v1/cof_menu/bulk | Updates a cof_menu
[**updatecofMenu_0**](CofmenuApi.md#updatecofMenu_0) | **PUT** /api/v1/cof_menu/{cof_menuId} | Updates a cof_menu


<a name="addcofMenu"></a>
# **addcofMenu**
> addcofMenu(body)

Add a new cof_menu



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var body = new XgeneCloud.CofMenu(); // CofMenu | cof_menu object that needs to add


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.addcofMenu(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**CofMenu**](CofMenu.md)| cof_menu object that needs to add | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="bulkcofMenuInsert"></a>
# **bulkcofMenuInsert**
> bulkcofMenuInsert(body)

Bulk cof_menu insert



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var body = [new XgeneCloud.CofMenu()]; // [CofMenu] | cof_menu objects


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.bulkcofMenuInsert(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofMenu]**](CofMenu.md)| cof_menu objects | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="checkcofMenuExists"></a>
# **checkcofMenuExists**
> &#39;Boolean&#39; checkcofMenuExists(cofMenuId)

Check cof_menu with provided ID exists

Returns a single cof_menu

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var cofMenuId = 789; // Integer | ID of cof_menu


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.checkcofMenuExists(cofMenuId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofMenuId** | **Integer**| ID of cof_menu | 

### Return type

**&#39;Boolean&#39;**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="cofMenuAggregate"></a>
# **cofMenuAggregate**
> CofMenu cofMenuAggregate(columnName, fields, func, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var columnName = "columnName_example"; // String | Column name

var fields = "fields_example"; // String | Column name

var func = "func_example"; // String | Comma seperated aggregate functions

var opts = { 
  'having': "having_example", // String | Having expression
  'fields2': "fields_example", // String | Comma seperated fields from the model
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fields
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofMenuAggregate(columnName, fields, func, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **fields** | **String**| Column name | 
 **func** | **String**| Comma seperated aggregate functions | 
 **having** | **String**| Having expression | [optional] 
 **fields2** | **String**| Comma seperated fields from the model | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fields | [optional] 

### Return type

[**CofMenu**](CofMenu.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofMenuDistinct"></a>
# **cofMenuDistinct**
> [Object] cofMenuDistinct(columnName, opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofMenuDistinct(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

**[Object]**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofMenuDistribution"></a>
# **cofMenuDistribution**
> [Object] cofMenuDistribution(columnName, opts)





### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'min': 789, // Integer | min value
  'max': 789, // Integer | max value
  'step': 789, // Integer | step value
  'steps': 789, // Integer | steps value
  'func': "func_example" // String | comma separated aggregation functions
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofMenuDistribution(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **min** | **Integer**| min value | [optional] 
 **max** | **Integer**| max value | [optional] 
 **step** | **Integer**| step value | [optional] 
 **steps** | **Integer**| steps value | [optional] 
 **func** | **String**| comma separated aggregation functions | [optional] 

### Return type

**[Object]**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="cofMenuGroupByColumn"></a>
# **cofMenuGroupByColumn**
> CofMenu cofMenuGroupByColumn(columnName, opts)

Group by column



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var columnName = "columnName_example"; // String | Column name

var opts = { 
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.cofMenuGroupByColumn(columnName, opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **columnName** | **String**| Column name | 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

[**CofMenu**](CofMenu.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="deletecofMenu"></a>
# **deletecofMenu**
> deletecofMenu(body)

Deletes a cof_menu



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var body = [new XgeneCloud.CofMenu()]; // [CofMenu] | cof_menu objects contains id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofMenu(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofMenu]**](CofMenu.md)| cof_menu objects contains id | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="deletecofMenu_0"></a>
# **deletecofMenu_0**
> deletecofMenu_0(cofMenuId)

Deletes a cof_menu



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var cofMenuId = 789; // Integer | ID of cof_menu to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.deletecofMenu_0(cofMenuId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofMenuId** | **Integer**| ID of cof_menu to return | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="findOnecofMenu"></a>
# **findOnecofMenu**
> CofMenu findOnecofMenu(opts)

Get first one from filtered data



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var opts = { 
  'fields': "fields_example", // String | Comma seperated fields from the model
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fieldst
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.findOnecofMenu(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fields** | **String**| Comma seperated fields from the model | [optional] 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fieldst | [optional] 

### Return type

[**CofMenu**](CofMenu.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getcofMenu"></a>
# **getcofMenu**
> getcofMenu(opts)

Get list



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var opts = { 
  'fields': "fields_example", // String | Comma seperated fields from the model
  'where': "where_example", // String | Where expression
  'limit': 789, // Integer | Page size limit
  'offset': 789, // Integer | Pagination offset
  'sort': "sort_example" // String | Comma seperated sort fields
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.getcofMenu(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **fields** | **String**| Comma seperated fields from the model | [optional] 
 **where** | **String**| Where expression | [optional] 
 **limit** | **Integer**| Page size limit | [optional] 
 **offset** | **Integer**| Pagination offset | [optional] 
 **sort** | **String**| Comma seperated sort fields | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getcofMenuById"></a>
# **getcofMenuById**
> CofMenu getcofMenuById(cofMenuId)

Find cof_menu by ID

Returns a single cof_menu

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var cofMenuId = 789; // Integer | ID of cof_menu to return


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getcofMenuById(cofMenuId, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofMenuId** | **Integer**| ID of cof_menu to return | 

### Return type

[**CofMenu**](CofMenu.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getcofMenuCount"></a>
# **getcofMenuCount**
> Object getcofMenuCount(opts)

Get cof_menu count

### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var opts = { 
  'where': "where_example" // String | Where expression
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getcofMenuCount(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **where** | **String**| Where expression | [optional] 

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="updatecofMenu"></a>
# **updatecofMenu**
> updatecofMenu(body)

Updates a cof_menu



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var body = [new XgeneCloud.CofMenu()]; // [CofMenu] | cof_menu objects with id


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatecofMenu(body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**[CofMenu]**](CofMenu.md)| cof_menu objects with id | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="updatecofMenu_0"></a>
# **updatecofMenu_0**
> updatecofMenu_0(cofMenuId, body)

Updates a cof_menu



### Example
```javascript
var XgeneCloud = require('xgene_cloud');

var apiInstance = new XgeneCloud.CofmenuApi();

var cofMenuId = 789; // Integer | ID of cof_menu to return

var body = new XgeneCloud.CofMenu(); // CofMenu | cof_menu object that needs to be added to the store


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.updatecofMenu_0(cofMenuId, body, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **cofMenuId** | **Integer**| ID of cof_menu to return | 
 **body** | [**CofMenu**](CofMenu.md)| cof_menu object that needs to be added to the store | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

