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:
projectsincludes 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.
Authorization
ApiKey read, writeIn: header
Scope: read, write
Query Parameters
Expand properties in response. Options: projects
stringResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v2/engineering-insights/repositories"{ "totalCount": 1, "items": [ { "_id": "5f9a9b1a-5b9a-4b9a-9a9a-9a9a9a9a9a9a", "version": 1, "key": "launchdarkly/LaunchDarkly-Docs", "type": "github", "url": "https://github.com/launchdarkly/LaunchDarkly-Docs", "mainBranch": "main", "projects": { "totalCount": 0, "items": [ { "_id": "57be1db38b75bf0772d11383", "_links": { "environments": { "href": "/api/v2/projects/example-project/environments", "type": "application/json" }, "self": { "href": "/api/v2/projects/example-project", "type": "application/json" } }, "key": "project-key-123abc", "name": "Example project" } ], "_links": { "property1": { "href": "string", "type": "string" }, "property2": { "href": "string", "type": "string" } } } } ], "_links": { "property1": { "href": "string", "type": "string" }, "property2": { "href": "string", "type": "string" } }}List pull requests GET
Get a list of pull requests ### Expanding the pull request collection response LaunchDarkly supports expanding the pull request collection response to include additional fields. To expand the response, append the `expand` query parameter and include the following: * `deployments` includes details on all of the deployments associated with each pull request * `flagReferences` includes details on all of the references to flags in each pull request * `leadTime` includes details about the lead time of the pull request for each stage For example, use `?expand=deployments` to include the `deployments` field in the response. By default, this field is **not** included in the response.
Associate repositories with projects PUT
Associate repositories with projects