|
48 | 48 | "outputs": [], |
49 | 49 | "source": [ |
50 | 50 | "def list_datasets():\n", |
51 | | - " r = requests.get('https://clowder.ncsa.illinois.edu/clowder/api/datasets', \n", |
| 51 | + " r = requests.get('https://clowderframework.org/clowder/api/datasets', \n", |
52 | 52 | " auth=auth)\n", |
53 | 53 | " print(r.status_code)\n", |
54 | 54 | " print(r.text)" |
|
89 | 89 | " 'space':space,\n", |
90 | 90 | " 'collection':collection}) \n", |
91 | 91 | "\n", |
92 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/datasets/createempty',\n", |
| 92 | + " r = requests.post('https://clowderframework.org/clowder/api/datasets/createempty',\n", |
93 | 93 | " data=payload,\n", |
94 | 94 | " headers=headers,\n", |
95 | 95 | " auth=auth)\n", |
|
125 | 125 | "\n", |
126 | 126 | " payload = json.dumps({'description':description})\n", |
127 | 127 | " \n", |
128 | | - " r = requests.put('https://clowder.ncsa.illinois.edu/clowder/api/datasets/'\n", |
| 128 | + " r = requests.put('https://clowderframework.org/clowder/api/datasets/'\n", |
129 | 129 | " + dataset_id +'/description',\n", |
130 | 130 | " data=payload,\n", |
131 | 131 | " headers=headers,\n", |
|
159 | 159 | "def edit_dataset_name(dataset_id, name):\n", |
160 | 160 | "\n", |
161 | 161 | " payload = json.dumps({'name': name})\n", |
162 | | - " r = requests.put('https://clowder.ncsa.illinois.edu/clowder/api/datasets/' + dataset_id +'/title',\n", |
| 162 | + " r = requests.put('https://clowderframework.org/clowder/api/datasets/' + dataset_id +'/title',\n", |
163 | 163 | " data=payload,\n", |
164 | 164 | " headers=headers,\n", |
165 | 165 | " auth=auth)\n", |
|
192 | 192 | "def add_tags_to_dataset(dataset_id, tags):\n", |
193 | 193 | " \n", |
194 | 194 | " payload = json.dumps({'tags':tags})\n", |
195 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/datasets/' + dataset_id +'/tags',\n", |
| 195 | + " r = requests.post('https://clowderframework.org/clowder/api/datasets/' + dataset_id +'/tags',\n", |
196 | 196 | " data=payload,\n", |
197 | 197 | " headers=headers,\n", |
198 | 198 | " auth=auth)\n", |
|
231 | 231 | " '''\n", |
232 | 232 | " \n", |
233 | 233 | " payload = json.dumps(metadata)\n", |
234 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/datasets/' + dataset_id +'/metadata',\n", |
| 234 | + " r = requests.post('https://clowderframework.org/clowder/api/datasets/' + dataset_id +'/metadata',\n", |
235 | 235 | " data=payload,\n", |
236 | 236 | " headers=headers,\n", |
237 | 237 | " auth=auth)\n", |
|
262 | 262 | "outputs": [], |
263 | 263 | "source": [ |
264 | 264 | "def delete_dtaset(dataset_id):\n", |
265 | | - " r = requests.delete('https://clowder.ncsa.illinois.edu/clowder/api/datasets/'+ dataset_id,\n", |
| 265 | + " r = requests.delete('https://clowderframework.org/clowder/api/datasets/'+ dataset_id,\n", |
266 | 266 | " auth=auth)\n", |
267 | 267 | " print(r.status_code)\n", |
268 | 268 | " print(r.text)" |
|
299 | 299 | "source": [ |
300 | 300 | "def upload_files_to_dataset(dataset_id, url):\n", |
301 | 301 | " payload = json.dumps({'url':url})\n", |
302 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/datasets/' + dataset_id + '/urls',\n", |
| 302 | + " r = requests.post('https://clowderframework.org/clowder/api/datasets/' + dataset_id + '/urls',\n", |
303 | 303 | " data=payload,\n", |
304 | 304 | " headers=headers,\n", |
305 | 305 | " auth=auth)\n", |
|
337 | 337 | " \n", |
338 | 338 | " payload = json.dumps({'tags':tags})\n", |
339 | 339 | " headers = {'Content-type': 'application/json', 'accept': 'application/json'}\n", |
340 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/files/' + file_id +'/tags',\n", |
| 340 | + " r = requests.post('https://clowderframework.org/clowder/api/files/' + file_id +'/tags',\n", |
341 | 341 | " data=payload,\n", |
342 | 342 | " headers=headers,\n", |
343 | 343 | " auth=auth)\n", |
|
370 | 370 | "def add_description_to_file(file_id, description):\n", |
371 | 371 | "\n", |
372 | 372 | " payload = json.dumps({'description':description})\n", |
373 | | - " r = requests.put('https://clowder.ncsa.illinois.edu/clowder/api/files/' \n", |
| 373 | + " r = requests.put('https://clowderframework.org/clowder/api/files/' \n", |
374 | 374 | " + file_id +'/updateDescription',\n", |
375 | 375 | " data=payload,\n", |
376 | 376 | " headers=headers,\n", |
|
411 | 411 | " \n", |
412 | 412 | " payload = json.dumps(metadata)\n", |
413 | 413 | " headers = {'Content-type': 'application/json', 'accept': 'application/json'}\n", |
414 | | - " r = requests.post('https://clowder.ncsa.illinois.edu/clowder/api/files/' + file_id +'/metadata',\n", |
| 414 | + " r = requests.post('https://clowderframework.org/clowder/api/files/' + file_id +'/metadata',\n", |
415 | 415 | " data=payload,\n", |
416 | 416 | " headers=headers,\n", |
417 | 417 | " auth=auth)\n", |
|
443 | 443 | "source": [ |
444 | 444 | "def delete_file(file_id):\n", |
445 | 445 | " \n", |
446 | | - " r = requests.delete('https://clowder.ncsa.illinois.edu/clowder/api/files/'+ file_id, auth=auth)\n", |
| 446 | + " r = requests.delete('https://clowderframework.org/clowder/api/files/'+ file_id, auth=auth)\n", |
447 | 447 | " print(r.status_code)\n", |
448 | 448 | " print(r.text)" |
449 | 449 | ] |
|
0 commit comments