# ApplicationsApi

All URIs are relative to *https://www.gitlab.com/api/v4*

|Method | HTTP request | Description|
|------------- | ------------- | -------------|
|[**deleteApiV4ApplicationsId**](#deleteapiv4applicationsid) | **DELETE** /applications/{id} | Delete an application|
|[**getApiV4Applications**](#getapiv4applications) | **GET** /applications | Get applications|
|[**postApiV4Applications**](#postapiv4applications) | **POST** /applications | Create a new application|

# **deleteApiV4ApplicationsId**
> deleteApiV4ApplicationsId()

Delete a specific application

### Example

```typescript
import {
    ApplicationsApi,
    Configuration
} from 'berg';

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

let id: number; //The ID of the application (not the application_id) (default to undefined)

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **id** | [**number**] | The ID of the application (not the application_id) | defaults to undefined|


### Return type

void (empty response body)

### Authorization

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

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**204** | Delete an application |  -  |

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

# **getApiV4Applications**
> Array<APIEntitiesApplication> getApiV4Applications()

List all registered applications

### Example

```typescript
import {
    ApplicationsApi,
    Configuration
} from 'berg';

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

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

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


### Return type

**Array<APIEntitiesApplication>**

### Authorization

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

### HTTP request headers

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


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

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

# **postApiV4Applications**
> APIEntitiesApplicationWithSecret postApiV4Applications(postApiV4ApplicationsRequest)

This feature was introduced in GitLab 10.5

### Example

```typescript
import {
    ApplicationsApi,
    Configuration,
    PostApiV4ApplicationsRequest
} from 'berg';

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

let postApiV4ApplicationsRequest: PostApiV4ApplicationsRequest; //

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

### Parameters

|Name | Type | Description  | Notes|
|------------- | ------------- | ------------- | -------------|
| **postApiV4ApplicationsRequest** | **PostApiV4ApplicationsRequest**|  | |


### Return type

**APIEntitiesApplicationWithSecret**

### Authorization

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

### HTTP request headers

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


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
|**200** | Create a new application |  -  |

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

