{
  "opencollection": "1.0.0",
  "info": {
    "name": "OSSInsight Public Pull Request Creators API",
    "version": "v1beta"
  },
  "items": [
    {
      "info": {
        "name": "Pull Request Creators",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List pull request creators",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ossinsight.io/v1/repos/:owner/:repo/pull_request_creators/",
            "params": [
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "Specify the field by which to sort the pull request creators list (values with a `-desc` suffix indicate descending sorting)"
              },
              {
                "name": "exclude_bots",
                "value": "",
                "type": "query",
                "description": "Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: `ti-chi-bot`)."
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number of the results to fetch."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "The number of results per page (max 100)."
              },
              {
                "name": "owner",
                "value": "pingcap",
                "type": "path",
                "description": "The owner of the repo."
              },
              {
                "name": "repo",
                "value": "tidb",
                "type": "path",
                "description": "The name of the repo."
              }
            ]
          },
          "docs": "Querying the pull request creators list in a given repository.\n\nThis API provides multiple ways to sort the query results, for example:\n\n- `sort=prs-desc` (Default): Sorted in descending order based on `prs` field (the number of PRs they have contributed), meaning that the contributor with the most PRs is at the top.\n- `sort=first_pr_merged_at-desc`: Sorted in descending order based on `first_pr_merged_at` field (the time of their first merged PR), which means you can got a list of new code cont"
        },
        {
          "info": {
            "name": "List countries/regions of PR creators",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ossinsight.io/v1/repos/:owner/:repo/pull_request_creators/countries/",
            "params": [
              {
                "name": "exclude_unknown",
                "value": "",
                "type": "query",
                "description": "Whether to exclude issue creators with unknown country/region information"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date of the range."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date of the range."
              },
              {
                "name": "owner",
                "value": "pingcap",
                "type": "path",
                "description": "The owner of the repo."
              },
              {
                "name": "repo",
                "value": "tidb",
                "type": "path",
                "description": "The name of the repo."
              }
            ]
          },
          "docs": "List countries/regions of pull request creators for the specified repository.\n\n> **Notice**:\n> In the overall data, about **3.5%** of GitHub users provided valid country/region information.\n\n> **Note**: \n> By default, the API does not count users without valid country/region information. \n> If you need to count these users, you can set the `exclude_unknown` parameter to `false`.\n"
        },
        {
          "info": {
            "name": "Pull request creators history",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ossinsight.io/v1/repos/:owner/:repo/pull_request_creators/history/",
            "params": [
              {
                "name": "per",
                "value": "",
                "type": "query",
                "description": "The time interval of the data points."
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date of the time range."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date of the time range."
              },
              {
                "name": "owner",
                "value": "pingcap",
                "type": "path",
                "description": "The owner of the repo."
              },
              {
                "name": "repo",
                "value": "tidb",
                "type": "path",
                "description": "The name of the repo."
              }
            ]
          },
          "docs": "Querying the historical trend of the number of pull request creators in a given repository."
        },
        {
          "info": {
            "name": "List organizations of PR creators",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.ossinsight.io/v1/repos/:owner/:repo/pull_request_creators/organizations/",
            "params": [
              {
                "name": "exclude_unknown",
                "value": "",
                "type": "query",
                "description": "Whether to exclude PR creators with unknown organization information"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date of the range."
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date of the range."
              },
              {
                "name": "owner",
                "value": "pingcap",
                "type": "path",
                "description": "The owner of the repo."
              },
              {
                "name": "repo",
                "value": "tidb",
                "type": "path",
                "description": "The name of the repo."
              }
            ]
          },
          "docs": "List organizations of pull request creators for the specified repository.\n\n> **Notice**:\n> In the overall data, about **5.62%** of GitHub users has valid organization information.\n\n> **Note**: \n> By default, the API does not count users without valid organization information. \n> If you need to count these users, you can set the `exclude_unknown` parameter to `false`.\n"
        }
      ]
    }
  ],
  "bundled": true
}