Skip to content

[Feature] HTTP API: Expansion for parity with core DownloadService #453

@SuperCoolPencil

Description

@SuperCoolPencil

The current HTTP API implementation in cmd/http_api.go is missing several key features that are available in the core DownloadService and the state management layer. To provide full control over the daemon via HTTP, the following endpoints should be added:

  • POST /batch/resume: Support for ResumeBatch(ids []string) to efficiently resume multiple downloads.
  • POST /pause-all: Pause all non-completed downloads.
  • POST /resume-all: Resume all paused downloads.
  • DELETE /history: Support for clearing completed downloads from history.
  • GET /settings: Retrieve current daemon settings.
  • POST /settings: Update daemon settings.
  • POST /settings/reload: Force a reload of settings from the configuration file.
  • POST /shutdown: Support for graceful shutdown of the daemon.
  • POST /publish: Ability to publish custom messages to the event stream.

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