# KeyManagementAPIApi

All URIs are relative to *https://api.metacopier.io*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**getAvailableEndpoints**](#getavailableendpoints) | **GET** /rest/api/v1/projects/{projectId}/apiKeys/availableEndpoints | Get available REST endpoints|
|[**getAvailableFields**](#getavailablefields) | **GET** /rest/api/v1/projects/{projectId}/apiKeys/availableFields | Get available DTO fields for access policy|
|[**getAvailableFrontendFeatures**](#getavailablefrontendfeatures) | **GET** /rest/api/v1/projects/{projectId}/apiKeys/availableFrontendFeatures | Get available frontend features|

# **getAvailableEndpoints**
> Array<RestEndpointMetadataDTO> getAvailableEndpoints()

Returns a list of all REST endpoints with their HTTP methods that can be controlled via API key access policy. Endpoints annotated with @Hidden are excluded.

### Example

```typescript
import {
    KeyManagementAPIApi,
    Configuration
} from 'js-metacopier-api';

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

let projectId: string; // (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **projectId** | [**string**] |  | defaults to undefined|


### Return type

**Array<RestEndpointMetadataDTO>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK |  -  |

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

# **getAvailableFields**
> Array<FieldMetadataDTO> getAvailableFields()

Returns a list of all visible fields in AccountDTO, AccountInformationDTO and CopierDTO that can be controlled via API key access policy. Fields annotated with @Hidden or @Schema(hidden=true) are excluded.

### Example

```typescript
import {
    KeyManagementAPIApi,
    Configuration
} from 'js-metacopier-api';

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

let projectId: string; // (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **projectId** | [**string**] |  | defaults to undefined|


### Return type

**Array<FieldMetadataDTO>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK |  -  |

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

# **getAvailableFrontendFeatures**
> Array<FrontendFeatureDTO> getAvailableFrontendFeatures()

Returns a list of all frontend features that can be hidden via API key access policy.

### Example

```typescript
import {
    KeyManagementAPIApi,
    Configuration
} from 'js-metacopier-api';

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

let projectId: string; // (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **projectId** | [**string**] |  | defaults to undefined|


### Return type

**Array<FrontendFeatureDTO>**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | OK |  -  |

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

