Updated API (markdown)

This commit is contained in:
Omar Roth 2018-08-07 14:57:58 -05:00
parent 4fe9d7dfdc
commit c584837596

44
API.md
View file

@ -212,6 +212,7 @@
],
"description": String,
"descriptionHtml": String,
"viewCount": Int64,
"published": Int64,
"lengthSeconds": Int32
@ -246,3 +247,46 @@
}
]
```
##### GET `/api/v1/captions/:id`
> Schema:
```
{
"captions": [
{
"label": String,
"languageCode": String
}
]
}
```
##### GET `/api/v1/comments/:id`
> Schema:
```
{
"commentCount": Int32?,
"comments": [
{
"author": String,
"authorThumbnails": [
"url": String,
"width": Int32,
"height": Int32
],
"authorId": String,
"authorUrl": String,
"content": String,
"published": Int64,
"likeCount": Int32,
"commentId": String,
"replies": {
"replyCount": Int32,
"continuation": String
}
}
]
}
```