Spaces:
Sleeping
Sleeping
add new route api/collections
Browse files
utils/datas/api_collections.ts
CHANGED
@@ -193,10 +193,24 @@ export const API_COLLECTIONS: Array<ApiCollection> = [{
|
|
193 |
key: "private",
|
194 |
defaultValue: false,
|
195 |
}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
}, {
|
197 |
method: 'GET',
|
198 |
path: '/api/collections/{namespace}/{slug-id}',
|
199 |
-
},
|
200 |
method: 'PATCH',
|
201 |
path: '/api/collections/{namespace}/{slug-id}',
|
202 |
body: [{
|
|
|
193 |
key: "private",
|
194 |
defaultValue: false,
|
195 |
}]
|
196 |
+
}, {
|
197 |
+
method: "GET",
|
198 |
+
path: '/api/collections',
|
199 |
+
parameters: {
|
200 |
+
owner: "",
|
201 |
+
sort: "",
|
202 |
+
item: "",
|
203 |
+
limit: 5,
|
204 |
+
q: ""
|
205 |
+
},
|
206 |
+
tooltips: {
|
207 |
+
item: "filter collections containing a specific item. Value must be the item_type and item_id concatenated. Example: \"models/teknium/OpenHermes-2.5-Mistral-7B\", \"datasets/squad\" or \"papers/2311.12983\".",
|
208 |
+
q: "Filter based on substrings for titles & descriptions."
|
209 |
+
}
|
210 |
}, {
|
211 |
method: 'GET',
|
212 |
path: '/api/collections/{namespace}/{slug-id}',
|
213 |
+
},{
|
214 |
method: 'PATCH',
|
215 |
path: '/api/collections/{namespace}/{slug-id}',
|
216 |
body: [{
|