GitLab · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for GitLab REST Packages: Cargo API

8 actions 8 updates phrasing extends openapi/gitlab-packages-cargo-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 8

$.info
$.paths['/api/v4/projects/{id}/packages/cargo/config.json'].get
$.paths['/api/v4/projects/{id}/packages/cargo/1/{package_name}'].get
$.paths['/api/v4/projects/{id}/packages/cargo/2/{package_name}'].get
$.paths['/api/v4/projects/{id}/packages/cargo/3/{first_char}/{package_name}'].get
$.paths['/api/v4/projects/{id}/packages/cargo/{prefix_1}/{prefix_2}/{package_name}'].get
$.paths['/api/v4/projects/{id}/packages/cargo/{package_name}/{package_version}/download'].get
$.paths['/api/v4/projects/{id}/packages/cargo/api/v1/crates/new'].put

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 Packages: Cargo API'
  version: 1.0.0
extends: openapi/gitlab-packages-cargo-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: 7
- target: $.paths['/api/v4/projects/{id}/packages/cargo/config.json'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the Cargo config.json for a project
      effect: read
      questions:
      - Where does Cargo get its configuration for a GitLab Packages registry?
      - What does a Cargo client read before publishing to a project's package registry?
      instructions:
      - text: Get the Cargo config.json for project {id}.
        slots:
          id: path.id
      - text: Fetch the Cargo registry configuration from {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/1/{package_name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a 1-character Cargo crate's sparse index
      effect: read
      questions:
      - How do I list the versions of a short-named Cargo crate?
      - Can I see the most recent versions of a crate whose name starts with one character?
      instructions:
      - text: Get the sparse index for crate {package_name} in project {id}.
        slots:
          package_name: path.package_name
          id: path.id
      - text: Show the latest {package_name} versions in {id}, one per line.
        slots:
          package_name: path.package_name
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/2/{package_name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a Cargo crate's sparse index
      effect: read
      questions:
      - What versions of a cargo package are published in a project?
      - How many versions does a Cargo crate's sparse index list?
      instructions:
      - text: Get the sparse index for Cargo package {package} in project {id}.
        slots:
          package: path.package_name
          id: path.id
      - text: Show the published versions of {package} in {id}.
        slots:
          package: path.package_name
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/3/{first_char}/{package_name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a 3-character Cargo crate's sparse index
      effect: read
      questions:
      - How do I read the version list for a crate whose name starts with three characters?
      - Can Cargo fetch a crate's sparse index by its first character and full name?
      instructions:
      - text: Get the sparse index for crate {package_name} in project {id} starting with {first_char}.
        slots:
          package_name: path.package_name
          id: path.id
          first_char: path.first_char
      - text: Show the latest {package_name} versions in {id} where {first_char} is the first character.
        slots:
          package_name: path.package_name
          id: path.id
          first_char: path.first_char
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/{prefix_1}/{prefix_2}/{package_name}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a long-named Cargo crate's sparse index
      effect: read
      questions:
      - How does Cargo read the version list for a crate with a long name?
      - Can I fetch a crate's sparse index using its first four characters as prefixes?
      instructions:
      - text: Get the sparse index for crate {package_name} in project {id} with prefixes {prefix_1} and {prefix_2}.
        slots:
          package_name: path.package_name
          id: path.id
          prefix_1: path.prefix_1
          prefix_2: path.prefix_2
      - text: Show the latest {package_name} versions in {id} under prefix {prefix_1}/{prefix_2}.
        slots:
          package_name: path.package_name
          id: path.id
          prefix_1: path.prefix_1
          prefix_2: path.prefix_2
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/{package_name}/{package_version}/download'].get
  update:
    x-apievangelist-phrasing:
      intent: Download a Cargo crate
      effect: read
      questions:
      - How do I download a specific version of a Cargo crate from GitLab Packages?
      - Can I fetch the .crate file for a package version?
      instructions:
      - text: Download version {package_version} of crate {package_name} from project {id}.
        slots:
          package_version: path.package_version
          package_name: path.package_name
          id: path.id
      - text: Fetch the .crate file for {package_name} {package_version} in {id}.
        slots:
          package_name: path.package_name
          package_version: path.package_version
          id: path.id
      method: generated
      generated: '2026-11-23'
- target: $.paths['/api/v4/projects/{id}/packages/cargo/api/v1/crates/new'].put
  update:
    x-apievangelist-phrasing:
      intent: Publish a Cargo crate
      effect: write
      questions:
      - How do I publish a new Cargo crate to a project's package registry?
      - Can I upload a crate file so it's published asynchronously?
      instructions:
      - text: Publish crate {file} to project {id}.
        slots:
          file: requestBody.file
          id: path.id
      - text: Upload the Cargo publish body {file} to {id} for async crate publication.
        slots:
          file: requestBody.file
          id: path.id
      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-packages-cargo-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.