All URIs are relative to https://app.launchdarkly.com
| Method | HTTP request | Description |
|---|---|---|
| associateRepositoriesAndProjects | PUT /api/v2/engineering-insights/repositories/projects | Associate repositories with projects |
| deleteRepositoryProject | DELETE /api/v2/engineering-insights/repositories/{repositoryKey}/projects/{projectKey} | Remove repository project association |
| getInsightsRepositories | GET /api/v2/engineering-insights/repositories | List repositories |
InsightsRepositoryProjectCollection associateRepositoriesAndProjects(insightsRepositoryProjectMappings)
Associate repositories with projects
import {
InsightsRepositoriesBetaApi,
Configuration,
InsightsRepositoryProjectMappings
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsRepositoriesBetaApi(configuration);
let insightsRepositoryProjectMappings: InsightsRepositoryProjectMappings; //
const { status, data } = await apiInstance.associateRepositoriesAndProjects(
insightsRepositoryProjectMappings
);| Name | Type | Description | Notes |
|---|---|---|---|
| insightsRepositoryProjectMappings | InsightsRepositoryProjectMappings |
InsightsRepositoryProjectCollection
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Repositories projects response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteRepositoryProject()
Remove repository project association
import {
InsightsRepositoriesBetaApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsRepositoriesBetaApi(configuration);
let repositoryKey: string; //The repository key (default to undefined)
let projectKey: string; //The project key (default to undefined)
const { status, data } = await apiInstance.deleteRepositoryProject(
repositoryKey,
projectKey
);| Name | Type | Description | Notes |
|---|---|---|---|
| repositoryKey | [string] | The repository key | defaults to undefined |
| projectKey | [string] | The project key | defaults to undefined |
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 204 | Action succeeded | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InsightsRepositoryCollection getInsightsRepositories()
Get a list of repositories ### Expanding the repository collection response LaunchDarkly supports expanding the repository collection response to include additional fields. To expand the response, append the expand query parameter and include the following: * projects includes details on all of the LaunchDarkly projects associated with each repository For example, use ?expand=projects to include the projects field in the response. By default, this field is not included in the response.
import {
InsightsRepositoriesBetaApi,
Configuration
} from 'launchdarkly-api-typescript';
const configuration = new Configuration();
const apiInstance = new InsightsRepositoriesBetaApi(configuration);
let expand: string; //Expand properties in response. Options: `projects` (optional) (default to undefined)
const { status, data } = await apiInstance.getInsightsRepositories(
expand
);| Name | Type | Description | Notes |
|---|---|---|---|
| expand | [string] | Expand properties in response. Options: `projects` | (optional) defaults to undefined |
InsightsRepositoryCollection
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Repository collection response | - |
| 400 | Invalid request | - |
| 401 | Invalid access token | - |
| 403 | Forbidden | - |
| 404 | Invalid resource identifier | - |
| 429 | Rate limited | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]