Skip to content

[Feature] HTTP API: Support for custom ID in /download request #454

@SuperCoolPencil

Description

@SuperCoolPencil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions