mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-08 17:45:45 +00:00
Add some api docs
This commit is contained in:
47
Tesses.YouTubeDownloader.Server/res/apiv1_routes.json
Normal file
47
Tesses.YouTubeDownloader.Server/res/apiv1_routes.json
Normal file
@@ -0,0 +1,47 @@
|
||||
[
|
||||
{
|
||||
"route": "/api/v1/video.json",
|
||||
"method": "GET",
|
||||
"queryParams": [
|
||||
{
|
||||
"name": "v",
|
||||
"type": "string",
|
||||
"description": "The 11 character videoid"
|
||||
}
|
||||
],
|
||||
"description": "Returns json object like https://tesses.net/apps/tytd/2025/video-example.json or null if video doesn't exist"
|
||||
},
|
||||
{
|
||||
"route": "/api/v1/downloads.json",
|
||||
"method": "GET",
|
||||
"queryParams": [
|
||||
{
|
||||
"name": "q",
|
||||
"type": "string?",
|
||||
"description": "The search parameter"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "string?",
|
||||
"description": "Whether you are searching for videos, playlists, channels or personal (defaults to videos)"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"type": "long?",
|
||||
"description": "The page to retreve, starts at 1 and defaults to 1"
|
||||
},
|
||||
{
|
||||
"name": "count",
|
||||
"type": "long?",
|
||||
"description": "The entries to return, defaults to 20"
|
||||
}
|
||||
],
|
||||
"description": "Query or browse the downloads"
|
||||
},
|
||||
{
|
||||
"route": "/api/v1/database.db",
|
||||
"method": "GET",
|
||||
"queryParams": [],
|
||||
"description": "Download the database"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user