enzostvs HF staff commited on
Commit
4cef696
1 Parent(s): ff1a29c

add tooltips for get request parameters

Browse files
Files changed (1) hide show
  1. utils/datas/api_collections.ts +15 -0
utils/datas/api_collections.ts CHANGED
@@ -39,12 +39,21 @@ export const API_COLLECTIONS: Array<ApiCollection> = [{
39
  direction: "",
40
  limit: 5,
41
  full: true,
 
 
 
 
 
 
42
  }
43
  }, {
44
  method: 'GET',
45
  path: '/api/datasets/{repo_id}',
46
  parameters: {
47
  full: true,
 
 
 
48
  }
49
  }, {
50
  method: 'GET',
@@ -67,6 +76,12 @@ export const API_COLLECTIONS: Array<ApiCollection> = [{
67
  limit: 5,
68
  full: true,
69
  config: true
 
 
 
 
 
 
70
  }
71
  }, {
72
  method: 'GET',
 
39
  direction: "",
40
  limit: 5,
41
  full: true,
42
+ },
43
+ tooltips: {
44
+ search: "Filter based on substrings for repos and their usernames, such as pets or microsoft",
45
+ full: "Whether to fetch most model data, such as all tags, the files, etc.",
46
+ config: "Whether to also fetch the repo config.",
47
+ filter: "Filter based on tags, such as task_categories:text-classification or languages:en."
48
  }
49
  }, {
50
  method: 'GET',
51
  path: '/api/datasets/{repo_id}',
52
  parameters: {
53
  full: true,
54
+ },
55
+ tooltips: {
56
+ full: "Whether to fetch most dataset data, such as all tags, the files, etc.",
57
  }
58
  }, {
59
  method: 'GET',
 
76
  limit: 5,
77
  full: true,
78
  config: true
79
+ },
80
+ tooltips: {
81
+ search: "Filter based on substrings for repos and their usernames, such as resnet or microsoft",
82
+ full: "Whether to fetch most model data, such as all tags, the files, etc.",
83
+ config: "Whether to also fetch the repo config.",
84
+ filter: "Filter based on tags, such as text-classification or spacy."
85
  }
86
  }, {
87
  method: 'GET',