GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Repositories API

15 actions 15 updates phrasing extends openapi/gitlab-repositories-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for GitLab's API. It is a proposal applied on top of the contract, not a document GitLab publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 15

$.info
$.paths['/api/v4/projects/{id}/repository/tree'].get
$.paths['/api/v4/projects/{id}/repository/blobs/{sha}/raw'].get
$.paths['/api/v4/projects/{id}/repository/blobs/{sha}'].get
$.paths['/api/v4/projects/{id}/repository/archive'].get
$.paths['/api/v4/projects/{id}/repository/compare'].get
$.paths['/api/v4/projects/{id}/repository/health'].get
$.paths['/api/v4/projects/{id}/repository/contributors'].get
$.paths['/api/v4/projects/{id}/repository/merge_base'].get
$.paths['/api/v4/projects/{id}/repository/blobs/batch'].post
$.paths['/api/v4/projects/{id}/repository/changed_paths'].get
$.paths['/api/v4/projects/{id}/repository/diverging_commits'].get
$.paths['/api/v4/projects/{id}/repository/diff_stats'].get
$.paths['/api/v4/projects/{id}/repository/changelog'].get
$.paths['/api/v4/projects/{id}/repository/changelog'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for GitLab REST Repositories API
  version: 1.0.0
extends: openapi/gitlab-repositories-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-23'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 14
- target: $.paths['/api/v4/projects/{id}/repository/tree'].get
  update:
    x-apievangelist-phrasing:
      intent: List a project's file tree
      effect: read
      questions:
      - How do I see every file and folder in a GitLab project?
      - Can I get the file tree for a specific branch or tag?
      instructions:
      - text: List the file tree of project {id}.
        slots:
          id: path.id
      - text: Show the file tree of {id} at branch {ref}.
        slots:
          id: path.id
          ref: query.ref
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/blobs/{sha}/raw'].get
  update:
    x-apievangelist-phrasing:
      intent: Get raw file contents by blob SHA
      effect: read
      questions:
      - How do I download the raw content of a file from a GitLab repo by its blob SHA?
      - Can I fetch a single file's raw bytes without its name?
      instructions:
      - text: Get the raw content of blob {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Download file {sha} from {id} as raw bytes.
        slots:
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/blobs/{sha}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a blob's info and content
      effect: read
      questions:
      - How do I see the size and Base64 content of a file blob in a repo?
      - What does a blob record include besides its SHA?
      instructions:
      - text: Get blob {sha} in project {id}.
        slots:
          sha: path.sha
          id: path.id
      - text: Show the size and content of file blob {sha} in {id}.
        slots:
          sha: path.sha
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/archive'].get
  update:
    x-apievangelist-phrasing:
      intent: Download a project archive
      effect: read
      questions:
      - How do I download a whole GitLab project as a zip or tarball?
      - Can I exclude certain files from a project archive?
      instructions:
      - text: Download project {id} as a {format} archive.
        slots:
          id: path.id
          format: query.format
      - text: Download {id} at commit {sha} excluding {exclude_paths}.
        slots:
          id: path.id
          sha: query.sha
          exclude_paths: query.exclude_paths
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/compare'].get
  update:
    x-apievangelist-phrasing:
      intent: Compare two branches, tags or commits
      effect: read
      questions:
      - How do I see what changed between two Git branches or tags?
      - Can I compare a branch against a tag?
      instructions:
      - text: Compare {from} to {to} in project {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      - text: Show the diff between branch {from} and tag {to} in {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/health'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a repository's health statistics
      effect: read
      questions:
      - How do I check the health of a GitLab repository?
      - Can I generate a fresh health report if the last one is missing?
      instructions:
      - text: Get the health statistics for project {id}.
        slots:
          id: path.id
      - text: Generate a new health report for {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/contributors'].get
  update:
    x-apievangelist-phrasing:
      intent: List contributors to a repository
      effect: read
      questions:
      - Who are the contributors to a GitLab repository?
      - Can I sort contributors by commit count?
      instructions:
      - text: List contributors to project {id}.
        slots:
          id: path.id
      - text: Show {ref} contributors to {id} sorted by {order_by}.
        slots:
          ref: query.ref
          id: path.id
          order_by: query.order_by
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/merge_base'].get
  update:
    x-apievangelist-phrasing:
      intent: Find the merge base of two commits
      effect: read
      questions:
      - How do I find the common ancestor commit of two branches?
      - What is the merge base of two Git commits?
      instructions:
      - text: Find the merge base of {refs} in project {id}.
        slots:
          refs: query.refs
          id: path.id
      - text: Get the common ancestor of commits {refs} in {id}.
        slots:
          refs: query.refs
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/blobs/batch'].post
  update:
    x-apievangelist-phrasing:
      intent: Get several file contents in one request
      effect: read
      questions:
      - How do I fetch the contents of many files at once?
      - Can I get up to 20 files in a single request?
      instructions:
      - text: Get the contents of files {files} in project {id}.
        slots:
          files: requestBody.files
          id: path.id
      - text: Batch fetch {files} from {id} in one request.
        slots:
          files: requestBody.files
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/changed_paths'].get
  update:
    x-apievangelist-phrasing:
      intent: List files changed between two commits
      effect: read
      questions:
      - Which files changed between two Git commits?
      - Can I detect file renames when comparing commits?
      instructions:
      - text: List changed files between {from} and {to} in project {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      - text: Show {find_renames} renames between {from} and {to} in {id}.
        slots:
          find_renames: query.find_renames
          from: query.from
          to: query.to
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/diverging_commits'].get
  update:
    x-apievangelist-phrasing:
      intent: Count commits ahead and behind two refs
      effect: read
      questions:
      - How far ahead or behind is one branch compared to another?
      - Can I cap how many commits are counted between two refs?
      instructions:
      - text: Count commits diverging between {from} and {to} in project {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      - text: Count at most {max_count} commits between {from} and {to} in {id}.
        slots:
          max_count: query.max_count
          from: query.from
          to: query.to
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/diff_stats'].get
  update:
    x-apievangelist-phrasing:
      intent: Get line changes for a commit range
      effect: read
      questions:
      - How many lines were added and removed between two commits in my repo?
      - Can I see file-by-file diff statistics for a merge request?
      instructions:
      - text: Show diff stats between {from} and {to} in project {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      - text: Get the lines added and removed between {from} and {to} for project {id}.
        slots:
          from: query.from
          to: query.to
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/changelog'].get
  update:
    x-apievangelist-phrasing:
      intent: Generate changelog data without committing it
      effect: read
      questions:
      - How do I generate changelog text for a version without saving it to a file?
      - Can I use a custom changelog config file to generate changelog data?
      instructions:
      - text: Generate changelog data for version {version} in project {id}.
        slots:
          version: query.version
          id: path.id
      - text: Generate changelog for {version} from {from} to {to} using config {config_file} in {id}.
        slots:
          version: query.version
          from: query.from
          to: query.to
          config_file: query.config_file
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/repository/changelog'].post
  update:
    x-apievangelist-phrasing:
      intent: Generate a changelog between two commits
      effect: write
      questions:
      - How do I generate a changelog of changed files between two commits?
      - Can I write the changelog to a specific file in my repo?
      instructions:
      - text: Generate a changelog between {from} and {to} for project {id}.
        slots:
          from: requestBody.from
          to: requestBody.to
          id: path.id
      - text: Write a changelog for {id} from {from} to {to} and commit it to {branch}.
        slots:
          id: path.id
          from: requestBody.from
          to: requestBody.to
          branch: requestBody.branch
      method: generated
      generated: '2026-11-23'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/gitlab-repositories-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.