From 070c227c9da4d947fe5bf03387b93b650768388f Mon Sep 17 00:00:00 2001 From: erentar Date: Mon, 21 Oct 2024 16:34:19 +0200 Subject: [PATCH] intro: add curl example to add new video to download queue (#42) * intro: add curl example to add new video to download queue * Revert "intro: add curl example to add new video to download queue" This reverts commit 732d4c9a39d2012ad7a280b986cf980386d97834. * move curl add to queue example * style code comment --------- Co-authored-by: Simon --- mkdocs/docs/api/download.md | 9 +++++++++ mkdocs/docs/stylesheets/style.css | 2 ++ 2 files changed, 11 insertions(+) diff --git a/mkdocs/docs/api/download.md b/mkdocs/docs/api/download.md index 3648144..790a9b4 100644 --- a/mkdocs/docs/api/download.md +++ b/mkdocs/docs/api/download.md @@ -25,6 +25,15 @@ Delete download queue items by filter: **DELETE** `/api/download/?filter=ignore` **DELETE** `/api/download/?filter=pending` +???+ "Curl Example" + ```bash + # add video to download queue + curl -XPOST -v /api/download/ \ + -H "Authorization: Token xxxxxxxxxx" \ + -H 'Content-Type: application/json' \ + -d '{"data":[{"youtube_id": "", "status":"pending"}]}' + ``` + ## Download Queue Item **GET** `/api/download//` **POST** `/api/download//` diff --git a/mkdocs/docs/stylesheets/style.css b/mkdocs/docs/stylesheets/style.css index 2da4583..d3a08c6 100644 --- a/mkdocs/docs/stylesheets/style.css +++ b/mkdocs/docs/stylesheets/style.css @@ -78,6 +78,7 @@ footer { --md-code-hl-number-color: var(--highlight-error-light); --md-code-hl-operator-color: var(--highlight-error); --md-code-nv-color: var(--highlight-error); + --md-code-hl-comment-color: var(--secondary-font); --md-typeset-table-color: var(--main-font); } @@ -88,6 +89,7 @@ footer { --highlight-error-light: #c44343; --highlight-bg-transparent: #00293baf; --main-font: #eeeeee; + --secondary-font: #858585; --accent-font-dark: #259485; --accent-font-light: #97d4c8; --img-filter: invert(50%) sepia(9%) saturate(2940%) hue-rotate(122deg) brightness(94%) contrast(90%);