From f0af538a41f7471a5b3db1dd86a9d161195009b0 Mon Sep 17 00:00:00 2001 From: d47081 <108541346+d47081@users.noreply.github.com> Date: Sun, 5 Nov 2023 00:44:19 +0200 Subject: [PATCH] Updated API (markdown) --- API.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/API.md b/API.md index 2d10813..99126dd 100644 --- a/API.md +++ b/API.md @@ -1,9 +1,13 @@ -Get / find recent torrents +Recent torrents -`/api/torrents?search=value&sensitive=0&locales=en|uk&yggdrasil=1&page=1` +GET `/api/torrents?search=value&sensitive=false&locales=en|uk&yggdrasil=1&page=1` -* `search` - optional, filter results by keyword, recent uploads if not provided -* `sensitive` - optional, 1 or 0, all results if not provided -* `locales` - optional, filter results by locales, all locales if not provided -* `yggdrasil` - optional, filter non-yggdrasil resources from response, all resources by default -* `page` - optional, 1 by default \ No newline at end of file +* `search` - `string` - optional, filter results by keyword, recent uploads if not provided +* `filter` - `bool` - optional, enable special rules to ignore user session +* `sensitive` - `bool` - optional, 1 or 0, all results if not provided +* `yggdrasil` - `bool` - optional, filter non-yggdrasil resources from downloads, all resources by default +* `locales` - `string` (loc1|loc2|.._) - optional, filter results by locales, all if not provided +* `categories` - `string` (cat1|cat2|..) - optional, filter results by categories, all if not provided +* `page` - int - optional, 1 by default + +_* Method follows user settings by IP session or ignore if the `filter` option provided_ \ No newline at end of file