The backend needs new routes that takes a user id and a folder id as parameters to retrieve pictures and inferences from them using datastore functions.
We'll do this in 2 steps: first, we want to retrieve only the names of the pictures, if they've been verified or come from a batch download, for example.
Then, if the user clicks on a picture, we'll retrieve the inference and the picture from blob storage.
/get-directories
method : Post
parameters needed : container_name (uuid)
return :
The directories route retreives all user directories from the database with their pictures as a json. There is 4 different cases for the pictures :
https://github.com/ai-cfia/nachet-frontend/issues/172 : "As a User, I'd like to be able to access the pictures from other folders"
The backend needs new routes that takes a user id and a folder id as parameters to retrieve pictures and inferences from them using datastore functions.
We'll do this in 2 steps: first, we want to retrieve only the names of the pictures, if they've been verified or come from a batch download, for example. Then, if the user clicks on a picture, we'll retrieve the inference and the picture from blob storage.
/get-directories
directories
route retreives all user directories from the database with their pictures as a json. There is 4 different cases for the pictures :/get-picture
method : Post
parameters needed :
return : This route will retreive selected picture as a json :
/get-directories
route/get-picture
route