-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route to import explored datasources automatically #7176
Conversation
@philippotto @normanrz do you have opinions on the API? Right now, the explore route takes a list of ExploreRemoteDatasetParameters (so that multiple layers can be explored into one datasource). To prototype this, I just added
|
I would like something simple like a GET route |
Shouldn't GET be avoided when the route has side-effects? |
Fair enough. Then, maybe a POST with
|
I made it to be The passed datasetName must be available in the relevant webknossos organization. Does this work for you? Or should we automatically generate dataset names to further simplify the api? |
Can you add an optional field for folder path? Ideally, the folders would be created if not existent. |
So far folders have only ever been referenced by id. If we now start using path literals with folder names, I’d vote to forbid forward slashes in folder names. There are existing folders with forward slashes in their names, so we would have to introduce a migration for that as well. Do you agree? |
Yes, folder names should not have slashes in them. I think we should be as restrictive as we are with dataset and layer names. |
New route to explore and immediately import remote datasets.
POST /api/v5/datasets/exploreAndAddRemote
with expected body{"remoteUri":"…", "datasetName": "…", "folderPath": "…"}
(folderPath is optional, defaults to root)TODO
Steps to test:
Issues: