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
Associate repositories with projects
import LaunchDarklyApi from 'launchdarkly-api';
let defaultClient = LaunchDarklyApi.ApiClient.instance;
// Configure API key authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix = 'Token';
let apiInstance = new LaunchDarklyApi.InsightsRepositoriesBetaApi();
let insightsRepositoryProjectMappings = new LaunchDarklyApi.InsightsRepositoryProjectMappings(); // InsightsRepositoryProjectMappings |
apiInstance.associateRepositoriesAndProjects(insightsRepositoryProjectMappings, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
insightsRepositoryProjectMappings | InsightsRepositoryProjectMappings |
InsightsRepositoryProjectCollection
- Content-Type: application/json
- Accept: application/json
deleteRepositoryProject(repositoryKey, projectKey)
Remove repository project association
Remove repository project association
import LaunchDarklyApi from 'launchdarkly-api';
let defaultClient = LaunchDarklyApi.ApiClient.instance;
// Configure API key authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix = 'Token';
let apiInstance = new LaunchDarklyApi.InsightsRepositoriesBetaApi();
let repositoryKey = "repositoryKey_example"; // String | The repository key
let projectKey = "projectKey_example"; // String | The project key
apiInstance.deleteRepositoryProject(repositoryKey, projectKey, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
});
Name | Type | Description | Notes |
---|---|---|---|
repositoryKey | String | The repository key | |
projectKey | String | The project key |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
InsightsRepositoryCollection getInsightsRepositories(opts)
List repositories
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 LaunchDarklyApi from 'launchdarkly-api';
let defaultClient = LaunchDarklyApi.ApiClient.instance;
// Configure API key authorization: ApiKey
let ApiKey = defaultClient.authentications['ApiKey'];
ApiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKey.apiKeyPrefix = 'Token';
let apiInstance = new LaunchDarklyApi.InsightsRepositoriesBetaApi();
let opts = {
'expand': "expand_example" // String | Expand properties in response. Options: `projects`
};
apiInstance.getInsightsRepositories(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
expand | String | Expand properties in response. Options: `projects` | [optional] |
- Content-Type: Not defined
- Accept: application/json