mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 20:00:15 +00:00
cleanup and typos
This commit is contained in:
parent
b28773b3a0
commit
c4a547f407
@ -1,6 +1,6 @@
|
|||||||
# TubeArchivist API
|
# TubeArchivist API
|
||||||
Documentation of available API endpoints.
|
Documentation of available API endpoints.
|
||||||
**Note: This will change!**
|
**Note: This is very early alpha and will change!**
|
||||||
|
|
||||||
## Authentication
|
## Authentication
|
||||||
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.
|
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.
|
||||||
@ -20,14 +20,14 @@ headers = {"Authorization": "Token xxxxxxxxxx"}
|
|||||||
response = requests.get(url, headers=headers)
|
response = requests.get(url, headers=headers)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Videos
|
## Video Item View
|
||||||
/api/video/\<video_id>/
|
/api/video/\<video_id>/
|
||||||
|
|
||||||
## Channel List View
|
## Channel List View
|
||||||
/api/channel/
|
/api/channel/
|
||||||
|
|
||||||
### Subscribe to a list of channels
|
### Subscribe to a list of channels
|
||||||
POST /api/channel
|
POST /api/channel/
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"data": [
|
"data": [
|
||||||
@ -39,14 +39,13 @@ POST /api/channel
|
|||||||
## Channel Item View
|
## Channel Item View
|
||||||
/api/channel/\<channel_id>/
|
/api/channel/\<channel_id>/
|
||||||
|
|
||||||
## Playlists
|
## Playlists Item View
|
||||||
/api/playlist/\<playlist_id>/
|
/api/playlist/\<playlist_id>/
|
||||||
|
|
||||||
## Download Queue List View
|
## Download Queue List View
|
||||||
/api/download/
|
/api/download/
|
||||||
|
|
||||||
### Add list of videos to download queue
|
### Add list of videos to download queue
|
||||||
|
|
||||||
POST /api/download/
|
POST /api/download/
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user