webknossos-libs
webknossos-libs copied to clipboard
Add more API functions
Here is a list of API calls, that the webknossos should provide:
- List teams:
GET /api/v5/teamsReturns:
[{
"id": "myTeamId",
"name": "myTeamName",
"organization": "myOrganizationName"
}, ...]
-
Create a new team:
POST /api/v5/teamswith json body like{"name": "myTeamName"}(returns 400 if team name already in use) -
List users
GET /api/v5/users -
Assign team roles to a user
PATCH /api/v5/users/:idwith json body like{ "teams": [ {"id":"aTeamId", "isTeamManager": false}, ...] }(always send full list) -
Explore and add new datasets
POST /api/v5/datasets/exploreAndAddRemotewith a JSON body:
{
"datasetName": '...',
"remoteUri": 'file:///home/...',
"folderPath": "/Datasets/"
}