Description
Currently, the 'Thank' feature is only available via the Livewire button in the web interface. There is no endpoint in the public or internal API to thank a torrent using an API/external request.
Proposal
Add a RESTful API endpoint, e.g. POST /api/torrents/{id}/thank, to allow authenticated users to thank a torrent via HTTP request, mirroring the logic of the Livewire ThankButton component:
- Prevent users from thanking their own uploads
- Prevent duplicate thanks for the same torrent
- Notify uploader following the current rules
Justification
- Enables integrations with mobile apps and third-party tools
- Developers and users can interact with this feature from external applications
- Ensures a consistent experience across all clients
Expected Flow Example
- Authenticated user sends
POST /api/torrents/{id}/thank request
- API performs validations (not own content, no duplicate thanks)
- API returns a success or error message
Thank you for considering this suggestion.
Description
Currently, the 'Thank' feature is only available via the Livewire button in the web interface. There is no endpoint in the public or internal API to thank a torrent using an API/external request.
Proposal
Add a RESTful API endpoint, e.g.
POST /api/torrents/{id}/thank, to allow authenticated users to thank a torrent via HTTP request, mirroring the logic of the Livewire ThankButton component:Justification
Expected Flow Example
POST /api/torrents/{id}/thankrequestThank you for considering this suggestion.