Updated API (markdown)

This commit is contained in:
Omar Roth 2018-08-08 10:36:46 -05:00
parent c50902f5cc
commit 959a9fbd02
1 changed files with 27 additions and 0 deletions

27
API.md
View File

@ -220,6 +220,11 @@
]
```
Parameters:
```
page: Int32
```
##### GET `/api/v1/search`
> Schema:
```
@ -248,6 +253,15 @@
]
```
Parameters
```
q: String,
page: Int32,
sort_by: "relevance", "rating", "upload_date", "view_count"
date: "hour", "today", "week", "month", "year"
duration: "short", "long"
```
##### GET `/api/v1/captions/:id`
> Schema:
```
@ -261,6 +275,14 @@
}
```
Parameters
```
label: String
```
A request with `label` will return the selected captions in WebVTT format.
##### GET `/api/v1/comments/:id`
> Schema:
```
@ -291,3 +313,8 @@
"continuation": String?
}
```
Parameters:
```
continuation: String
```