{
  "opencollection": "1.0.0",
  "info": {
    "name": "Codeberg API (Forgejo) Git Content Pull Requests API",
    "version": "15.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Pull Requests",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List a repo's pull requests",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              }
            ]
          },
          "docs": "List a repo's pull requests"
        },
        {
          "info": {
            "name": "Create a pull request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              }
            ]
          },
          "docs": "Create a pull request"
        },
        {
          "info": {
            "name": "Get a pull request",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls/:index",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              },
              {
                "name": "index",
                "value": "",
                "type": "path",
                "description": "Index (number) of the issue or pull request within the repository."
              }
            ]
          },
          "docs": "Get a pull request"
        },
        {
          "info": {
            "name": "Update a pull request",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls/:index",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              },
              {
                "name": "index",
                "value": "",
                "type": "path",
                "description": "Index (number) of the issue or pull request within the repository."
              }
            ]
          },
          "docs": "Update a pull request"
        },
        {
          "info": {
            "name": "Check if a pull request has been merged",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls/:index/merge",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              },
              {
                "name": "index",
                "value": "",
                "type": "path",
                "description": "Index (number) of the issue or pull request within the repository."
              }
            ]
          },
          "docs": "Check if a pull request has been merged"
        },
        {
          "info": {
            "name": "Merge a pull request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://codeberg.org/api/v1/repos/:owner/:repo/pulls/:index/merge",
            "params": [
              {
                "name": "owner",
                "value": "",
                "type": "path",
                "description": "Owner of the repository (user or organization)."
              },
              {
                "name": "repo",
                "value": "",
                "type": "path",
                "description": "Name of the repository."
              },
              {
                "name": "index",
                "value": "",
                "type": "path",
                "description": "Index (number) of the issue or pull request within the repository."
              }
            ]
          },
          "docs": "Merge a pull request"
        }
      ]
    }
  ],
  "bundled": true
}