The /download (POST) endpoint currently uses the DownloadRequest struct, which does not include an ID field. The core DownloadService supports AddWithID, which is crucial for external integrations (like a more complex frontend or another service) that need to manage and track IDs themselves without waiting for a response from the server.
Proposed change:
Add ID string json:"id,omitempty"toDownloadRequestincmd/root_downloads.goand updatehandleDownloadto useservice.AddWithID` if provided.
The
/download(POST) endpoint currently uses theDownloadRequeststruct, which does not include anIDfield. The coreDownloadServicesupportsAddWithID, which is crucial for external integrations (like a more complex frontend or another service) that need to manage and track IDs themselves without waiting for a response from the server.Proposed change:
Add
ID stringjson:"id,omitempty"toDownloadRequestincmd/root_downloads.goand updatehandleDownloadto useservice.AddWithID` if provided.