{
  "opencollection": "1.0.0",
  "info": {
    "name": "RubyGems.org Registry Activity OIDC API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "OIDC",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Exchange OIDC Token For Trusted Publishing API Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://rubygems.org/api/v1/oidc/api_key_role/:token/assume_role",
            "params": [
              {
                "name": "token",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Exchanges a CI provider OIDC token (GitHub Actions, GitLab CI, etc.) for a short-lived RubyGems API key scoped by a configured trusted-publishing role."
        }
      ]
    }
  ],
  "bundled": true
}