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 732d4c9a39.

* move curl add to queue example

* style code comment

---------

Co-authored-by: Simon <simobilleter@gmail.com>
This commit is contained in:
erentar 2024-10-21 16:34:19 +02:00 committed by GitHub
parent a318e34890
commit 070c227c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -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": "<video-id>", "status":"pending"}]}'
```
## Download Queue Item
**GET** `/api/download/<video_id>/`
**POST** `/api/download/<video_id>/`

View File

@ -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%);