Skip to content

Commit

Permalink
Deploy from Data App
Browse files Browse the repository at this point in the history
  • Loading branch information
tidb-cloud-data-service[bot] authored Dec 18, 2023
1 parent ef8ef1a commit 02ba38c
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions configs/public_api/http_endpoints/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
{
"name": "List Issue Creators",
"description": "List GitHub users who have created issues in a specific repository.The returned data includes the user ID, login, name, total issues created, and the date of the first issue opened. Limits and offsets can be applied for pagination purposes.",
"name": "List Pull Request Creators",
"description": "Lists users who have created pull requests (Aka. Code contributors) in a specified GitHub repository. Returns user IDs, logins, names, the number of pull requests made, and the dates of their first opened and first merged pull requests. ",
"method": "GET",
"endpoint": "/repos/issue_creators",
"endpoint": "/repos/pull_request_creators",
"data_source": {
"cluster_id": 1379661944642684098
},
Expand Down Expand Up @@ -33,9 +33,9 @@
"name": "sort",
"type": "string",
"required": 0,
"default": "issues-desc",
"description": "Specify the field by which to sort the issue creators list (values with a `-desc` suffix indicate descending sorting)",
"enum": "issues,issues-desc,first_issue_opened_at,first_issue_opened_at-desc,login"
"default": "prs-desc",
"description": "Specify the field by which to sort the pull request creators list (values with a `-desc` suffix indicate descending sorting)",
"enum": "login,prs,prs-desc,first_pr_opened_at,first_pr_opened_at-desc,first_pr_merged_at,first_pr_merged_at-desc"
}
],
"settings": {
Expand All @@ -45,9 +45,9 @@
"cache_ttl": 600,
"enable_pagination": 1
},
"tag": "Issues",
"tag": "Pull Requests",
"batch_operation": 0,
"sql_file": "sql/GET-repos-issue_creators.sql",
"sql_file": "sql/GET-repos-pull_request_creators.sql",
"type": "sql_endpoint",
"return_type": "json"
},
Expand Down Expand Up @@ -431,6 +431,58 @@
"type": "sql_endpoint",
"return_type": "json"
},
{
"name": "List Issue Creators",
"description": "List GitHub users who have created issues in a specific repository.The returned data includes the user ID, login, name, total issues created, and the date of the first issue opened. Limits and offsets can be applied for pagination purposes.",
"method": "GET",
"endpoint": "/repos/issue_creators",
"data_source": {
"cluster_id": 1379661944642684098
},
"params": [
{
"name": "owner",
"type": "string",
"required": 1,
"default": "",
"description": "The owner of the repo."
},
{
"name": "repo",
"type": "string",
"required": 1,
"default": "",
"description": "The name of the repo."
},
{
"name": "exclude_bots",
"type": "boolean",
"required": 0,
"default": "true",
"description": "Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: `ti-chi-bot`)."
},
{
"name": "sort",
"type": "string",
"required": 0,
"default": "issues-desc",
"description": "Specify the field by which to sort the issue creators list (values with a `-desc` suffix indicate descending sorting)",
"enum": "issues,issues-desc,first_issue_opened_at,first_issue_opened_at-desc,login"
}
],
"settings": {
"timeout": 5000,
"row_limit": 200,
"cache_enabled": 1,
"cache_ttl": 600,
"enable_pagination": 1
},
"tag": "Issues",
"batch_operation": 0,
"sql_file": "sql/GET-repos-issue_creators.sql",
"type": "sql_endpoint",
"return_type": "json"
},
{
"name": "List Issue Creators Countries",
"description": "Provides the count and percentage of issue creators from each country, filtering data within a specified time range. Additionally, the API has an option to exclude issue creators from unspecified or unknown countries, and it returns number of issue creators per country, in descending order.",
Expand Down Expand Up @@ -885,58 +937,6 @@
"type": "sql_endpoint",
"return_type": "json"
},
{
"name": "List Pull Request Creators",
"description": "Lists users who have created pull requests (Aka. Code contributors) in a specified GitHub repository. Returns user IDs, logins, names, the number of pull requests made, and the dates of their first opened and first merged pull requests. ",
"method": "GET",
"endpoint": "/repos/pull_request_creators",
"data_source": {
"cluster_id": 1379661944642684098
},
"params": [
{
"name": "owner",
"type": "string",
"required": 1,
"default": "",
"description": "The owner of the repo."
},
{
"name": "repo",
"type": "string",
"required": 1,
"default": "",
"description": "The name of the repo."
},
{
"name": "exclude_bots",
"type": "boolean",
"required": 0,
"default": "true",
"description": "Whether to exclude robot accounts (includes GitHub App and normal users whose username matches the pattern, for example: `ti-chi-bot`)."
},
{
"name": "sort",
"type": "string",
"required": 0,
"default": "prs-desc",
"description": "Specify the field by which to sort the pull request creators list (values with a `-desc` suffix indicate descending sorting)",
"enum": "login,prs,prs-desc,first_pr_opened_at,first_pr_opened_at-desc,first_pr_merged_at,first_pr_merged_at-desc"
}
],
"settings": {
"timeout": 5000,
"row_limit": 2000,
"cache_enabled": 1,
"cache_ttl": 600,
"enable_pagination": 1
},
"tag": "Pull Requests",
"batch_operation": 0,
"sql_file": "sql/GET-repos-pull_request_creators.sql",
"type": "sql_endpoint",
"return_type": "json"
},
{
"name": "List PR Creators Countries",
"description": "List countries/regions of pull request creators for the specified repository during a specified time range.",
Expand Down

0 comments on commit 02ba38c

Please sign in to comment.