# IndexRateSourcesApi

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

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**createIndexRateSource**](#createindexratesource) | **POST** /indexratesources | Create index rate source|
|[**deleteIndexRateSource**](#deleteindexratesource) | **DELETE** /indexratesources/{indexRateSourceId} | Delete index rate source|
|[**getAllIndexRateSources**](#getallindexratesources) | **GET** /indexratesources | Get index rate sources|
|[**getIndexRateSourceById**](#getindexratesourcebyid) | **GET** /indexratesources/{indexRateSourceId} | Get index rate sources|

# **createIndexRateSource**
> IndexRateSource createIndexRateSource(indexRateSource)


### Example

```typescript
import {
    IndexRateSourcesApi,
    Configuration,
    IndexRateSource
} from './api';

const configuration = new Configuration();
const apiInstance = new IndexRateSourcesApi(configuration);

let indexRateSource: IndexRateSource; //Index rate source to be created.
let idempotencyKey: string; //Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. (optional) (default to undefined)

const { status, data } = await apiInstance.createIndexRateSource(
    indexRateSource,
    idempotencyKey
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **indexRateSource** | **IndexRateSource**| Index rate source to be created. | |
| **idempotencyKey** | [**string**] | Key that can be used to support idempotency on this POST. Must be a valid UUID(version 4 is recommended) string and can only be used with the exact same request. Can be used in retry mechanisms to prevent double posting. | (optional) defaults to undefined|


### Return type

**IndexRateSource**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**102** | Your idempotent request was already submitted and is currently being processed, try again later. |  -  |
|**201** | Index rate created. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[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)

# **deleteIndexRateSource**
> deleteIndexRateSource()


### Example

```typescript
import {
    IndexRateSourcesApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new IndexRateSourcesApi(configuration);

let indexRateSourceId: string; //The ID of the index rate source. (default to undefined)

const { status, data } = await apiInstance.deleteIndexRateSource(
    indexRateSourceId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **indexRateSourceId** | [**string**] | The ID of the index rate source. | defaults to undefined|


### Return type

void (empty response body)

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Index rate source deleted. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Index rate source not found. |  -  |

[[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)

# **getAllIndexRateSources**
> Array<IndexRateSource> getAllIndexRateSources()


### Example

```typescript
import {
    IndexRateSourcesApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new IndexRateSourcesApi(configuration);

const { status, data } = await apiInstance.getAllIndexRateSources();
```

### Parameters
This endpoint does not have any parameters.


### Return type

**Array<IndexRateSource>**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Index rate sources list returned. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |

[[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)

# **getIndexRateSourceById**
> IndexRateSource getIndexRateSourceById()


### Example

```typescript
import {
    IndexRateSourcesApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new IndexRateSourcesApi(configuration);

let indexRateSourceId: string; //The ID of the index rate source. (default to undefined)

const { status, data } = await apiInstance.getIndexRateSourceById(
    indexRateSourceId
);
```

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **indexRateSourceId** | [**string**] | The ID of the index rate source. | defaults to undefined|


### Return type

**IndexRateSource**

### Authorization

[basic](../README.md#basic)

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: application/vnd.mambu.v2+json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Index rate source returned. |  -  |
|**400** | A validation error occurred |  -  |
|**401** | Unauthorized |  -  |
|**403** | Forbidden |  -  |
|**404** | Index rate source not found. |  -  |

[[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)

