Get a file from a GitLab project for a Git Sync installation

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
installationIdstringRequired

Identifier of the installation

projectIdnumberRequired
Query parameters
pathstringRequired
refstringRequired
Responses
200

File found in the selected GitLab project

application/json

A file found in a Git Sync repository at a specific ref.

namestringRequired
pathstringRequired
shastringRequired
sizenumberRequired
get/git/installations/{installationId}/gitlab/projects/{projectId}/file
GET /v1/git/installations/{installationId}/gitlab/projects/{projectId}/file?path=text&ref=text HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "name": "text",
  "path": "text",
  "sha": "text",
  "size": 1
}

Last updated

Was this helpful?

Powered by GitBook