By using URI Versioning, which means adding a prefix with the version to all endpoints: /v1.
| Context |
Method |
Path |
| root |
|
|
|
GET |
/ |
| about |
|
|
|
GET |
/about |
|
GET |
/about/license |
| category |
|
|
|
GET |
/category |
|
POST |
/category |
|
DELETE |
/category |
| proxy |
|
|
|
GET |
/proxy/image/{url} |
| settings |
|
|
|
GET |
/settings |
|
POST |
/settings |
|
GET |
/settings/name |
|
GET |
/settings/public |
| torrent |
|
|
|
POST |
/torrent/upload |
|
GET |
/torrent/download/{info_hash} |
|
GET |
/torrent/{info_hash} |
|
PUT |
/torrent/{info_hash} |
|
DELETE |
/torrent/{info_hash} |
|
GET |
/torrents |
| user |
|
|
|
POST |
/user/register |
|
POST |
/user/login |
|
DELETE |
/user/ban/{user} |
|
POST |
/user/token/verify |
|
POST |
/user/token/renew |
|
GET |
/user/email/verify/{token} |
By using URI Versioning, which means adding a prefix with the version to all endpoints:
/v1.GET/GET/aboutGET/about/licenseGET/categoryPOST/categoryDELETE/categoryGET/proxy/image/{url}GET/settingsPOST/settingsGET/settings/nameGET/settings/publicPOST/torrent/uploadGET/torrent/download/{info_hash}GET/torrent/{info_hash}PUT/torrent/{info_hash}DELETE/torrent/{info_hash}GET/torrentsPOST/user/registerPOST/user/loginDELETE/user/ban/{user}POST/user/token/verifyPOST/user/token/renewGET/user/email/verify/{token}