Sign in

Get repository file

documented

Get a file’s content from the repository.

GET /projects/:id/repository/files/:file_pathProjectsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://gitlab.com/api/v4/projects/{{$project_id}}/repository/files/{{$file_path}}?ref={{$ref}}" \
  -X GET \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}"