Context
When attempting to download the contents of a folder, we just use the current endpoint GET /v1/library?relativePath=$folderPath/&sign=true. The thing is, this response doesn't take into consideration the nested folders, as it's the same endpoint we use to list the library, so instead of getting the signed URLs of the contents of the nested folders, we get the URL for the s3 folder object.
Question
The previous scenario has some workarounds, as we can also request the type param and filter out client side the s3 folder URLs, to avoid downloading the s3 error response for folders, but this raises the question if it would be best to have a separate endpoint for fetching download URLs, so we can provide all the nested URLs, or if we even want to allow that (i.e. possibly downloading the entire library with just one action). I'm partial to just allowing downloads of one folder / level at a time, as it's rare that a user actually needs to have all their books on device, and not just their current listening series
Context
When attempting to download the contents of a folder, we just use the current endpoint
GET /v1/library?relativePath=$folderPath/&sign=true. The thing is, this response doesn't take into consideration the nested folders, as it's the same endpoint we use to list the library, so instead of getting the signed URLs of the contents of the nested folders, we get the URL for the s3 folder object.Question
The previous scenario has some workarounds, as we can also request the
typeparam and filter out client side the s3 folder URLs, to avoid downloading the s3 error response for folders, but this raises the question if it would be best to have a separate endpoint for fetching download URLs, so we can provide all the nested URLs, or if we even want to allow that (i.e. possibly downloading the entire library with just one action). I'm partial to just allowing downloads of one folder / level at a time, as it's rare that a user actually needs to have all their books on device, and not just their current listening series