Skip to content

Commit

Permalink
public-api: add list collection items API
Browse files Browse the repository at this point in the history
  • Loading branch information
tidb-cloud-data-service[bot] authored Jul 28, 2023
1 parent 00ed652 commit 9c735ea
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions configs/public_api/http_endpoints/config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
[
{
"name": "List Collection Items",
"description": "List Repository Collections",
"method": "GET",
"endpoint": "/collections_dump_kuceqV",
"data_source": {
"cluster_id": 1379661944642684098
},
"params": [
{
"name": "collection_id",
"type": "number",
"required": 1,
"default": ""
}
],
"settings": {
"timeout": 5000,
"row_limit": 50
},
"tag": "collections",
"batch_operation": 0,
"sql_file": "sql/GET-collections_dump_kuceqV.sql",
"type": "sql_endpoint",
"return_type": "json"
},
{
"name": "List Collections",
"description": "List Repository Collections",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
USE gharchive_dev;
SELECT repo_id, repo_name, collection_id
FROM collection_items
WHERE collection_id = ${collection_id}

0 comments on commit 9c735ea

Please sign in to comment.