{
  "opencollection": "1.0.0",
  "info": {
    "name": "RubyGems Activity Gems API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Gems",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Gem Information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rubygems.org/api/v1/gems/:gemName.json",
            "params": [
              {
                "name": "gemName",
                "value": "rails",
                "type": "path",
                "description": "The name of the gem"
              }
            ]
          },
          "docs": "Returns detailed information about a specific gem, including its name, downloads count, current version, authors, version downloads, homepage URI, and dependency lists for runtime and development."
        },
        {
          "info": {
            "name": "List Gems Owned By The Authenticated User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rubygems.org/api/v1/gems.json"
          },
          "docs": "Returns an array of gem objects that the authenticated user owns. Requires a valid API key for authentication."
        },
        {
          "info": {
            "name": "Submit A Gem",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rubygems.org/api/v1/gems",
            "headers": [
              {
                "name": "OTP",
                "value": ""
              }
            ]
          },
          "docs": "Submit a built RubyGem (.gem file) to RubyGems.org. The gem binary must be included in the request body. On successful submission, the gem is published and available for installation."
        },
        {
          "info": {
            "name": "Yank A Gem Version",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://rubygems.org/api/v1/gems/yank",
            "headers": [
              {
                "name": "OTP",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "gem_name",
                "value": "",
                "type": "query",
                "description": "Name of the gem to yank"
              },
              {
                "name": "version",
                "value": "",
                "type": "query",
                "description": "Version number to yank"
              },
              {
                "name": "platform",
                "value": "",
                "type": "query",
                "description": "Platform of the gem version to yank, such as ruby, java, or x86_64-linux."
              }
            ]
          },
          "docs": "Remove a specific gem version from RubyGems.org. Yanked gems are no longer available for installation but their metadata is retained. The gem name, version, and optionally platform must be specified."
        },
        {
          "info": {
            "name": "Get Reverse Dependencies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rubygems.org/api/v1/gems/:gemName/reverse_dependencies.json",
            "params": [
              {
                "name": "gemName",
                "value": "rails",
                "type": "path",
                "description": "The name of the gem"
              }
            ]
          },
          "docs": "Returns an array of gem names that depend on the specified gem. This is useful for understanding the downstream impact of changes to a gem."
        },
        {
          "info": {
            "name": "Get API Key",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://rubygems.org/api/v1/api_key.json"
          },
          "docs": "Retrieve the API key for the authenticated user. Requires HTTP Basic authentication with email and password."
        },
        {
          "info": {
            "name": "Exchange OIDC Token For API Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rubygems.org/api/v1/oidc/trusted_publisher/exchange_token",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Exchange an OIDC identity token from a trusted publisher for a short-lived RubyGems API key. This enables automated gem publishing from CI/CD systems without storing long-lived API keys."
        }
      ]
    }
  ],
  "bundled": true
}