# VerityReputation.EthicApi

All URIs are relative to *http://springserver.cfapps.io/verity/core*

Method | HTTP request | Description
------------- | ------------- | -------------
[**createEthic**](EthicApi.md#createEthic) | **POST** /ethic | create ethic
[**getEthic**](EthicApi.md#getEthic) | **GET** /ethic/{uuid} | get ethic
[**getEthicsByQuery**](EthicApi.md#getEthicsByQuery) | **GET** /ethic | get ethics by query parameters


<a name="createEthic"></a>
# **createEthic**
> Ethic createEthic(opts)

create ethic

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.EthicApi();

var opts = { 
  'body': new VerityReputation.Ethic() // Ethic | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.createEthic(opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Ethic**](Ethic.md)|  | [optional] 

### Return type

[**Ethic**](Ethic.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

<a name="getEthic"></a>
# **getEthic**
> Ethic getEthic(uuid)

get ethic

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.EthicApi();

var uuid = "uuid_example"; // String | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getEthic(uuid, callback);
```

### Parameters

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

### Return type

[**Ethic**](Ethic.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

<a name="getEthicsByQuery"></a>
# **getEthicsByQuery**
> [Ethic] getEthicsByQuery(pageNumber, pageSize, , opts)

get ethics by query parameters

### Example
```javascript
var VerityReputation = require('verity_reputation');

var apiInstance = new VerityReputation.EthicApi();

var pageNumber = 56; // Number | starting page number. Must be > 0.

var pageSize = 56; // Number | number of records to return per page.

var opts = { 
  'name': "name_example" // String | 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getEthicsByQuery(pageNumber, pageSize, , opts, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **pageNumber** | **Number**| starting page number. Must be &gt; 0. | 
 **pageSize** | **Number**| number of records to return per page. | 
 **name** | **String**|  | [optional] 

### Return type

[**[Ethic]**](Ethic.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/json

