Closed jstriebel closed 5 years ago
For testing, run (with the correct token)
curl -d '{"neuroglancer": {"Connectomics_Department": {"ADDED": {"layers": {"image": {"source": "gs://neuroglancer-fafb-data/fafb_v14/fafb_v14_clahe","type": "image"}}}}}}' -H "Content-Type: application/json" -X POST http://localhost:8000/data/datasets?token=<TOKEN>
A new dataset should appear in the dashboard, and the data/datasets.json should be updated.
data/datasets.json
You can overwrite this dataset with another, which overwrites the previous:
curl -d '{"neuroglancer": {"Connectomics_Department": {"ADDED": {"layers": {"image": {"source": "gs://neuroglancer-public-data/kasthuri2011/image_color_corrected","type": "image"}}}}}}' -H "Content-Type: application/json" -X POST http://localhost:8000/data/datasets?token=<TOKEN>
Using invalid tokens produces a 403 Forbidden: invalid access token
Forbidden: invalid access token
For testing, run (with the correct token)
A new dataset should appear in the dashboard, and the
data/datasets.json
should be updated.You can overwrite this dataset with another, which overwrites the previous:
Using invalid tokens produces a 403
Forbidden: invalid access token