diff --git a/mkdocs/docs/api/introduction.md b/mkdocs/docs/api/introduction.md index 55d295c..54793ca 100644 --- a/mkdocs/docs/api/introduction.md +++ b/mkdocs/docs/api/introduction.md @@ -19,9 +19,15 @@ This page has a generic overview with how the Tube Archivist API functions. This API token will get automatically created, accessible on the settings page. Token needs to be passed as an authorization header with every request. Additionally session based authentication is enabled too: When you are logged into your TubeArchivist instance, you'll have access to the api in the browser for testing. Curl example: -```shell -curl -v /api/video// \ - -H "Authorization: Token xxxxxxxxxx" +```sh +token="<...>" +data='{"data":[{"youtube_id": "jNQXAC9IVRw", "status":"pending"}]}' + +curl \ +"http://tubearchive.local:80/api/download/" \ +-H "Authorization: Token $token" \ +-H 'Content-Type: application/json' \ +--data "$data" ``` Python requests example: