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.
The current HTTP API implementation in
cmd/http_api.gois missing several key features that are available in the coreDownloadServiceand thestatemanagement layer. To provide full control over the daemon via HTTP, the following endpoints should be added:POST /batch/resume: Support forResumeBatch(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.