- Add more components
This commit is contained in:
parent
8d3453f16f
commit
d231504df1
@ -1,7 +1,7 @@
|
||||
_id: spc_2b420b2bed1d4d868807303a581fb8c1
|
||||
type: ApiSpec
|
||||
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
||||
modified: 1679919342812
|
||||
modified: 1680013029849
|
||||
created: 1679916396495
|
||||
fileName: youtubekids.yaml
|
||||
contents: >+
|
||||
@ -40,6 +40,10 @@ contents: >+
|
||||
responses:
|
||||
'200':
|
||||
description: Successful operation
|
||||
content:
|
||||
'application/json':
|
||||
"schema":
|
||||
$ref: '#/components/schemas/BrowseResponse'
|
||||
|
||||
|
||||
# Компоненты
|
||||
@ -48,6 +52,185 @@ contents: >+
|
||||
# Схемы данных
|
||||
schemas:
|
||||
|
||||
# Доступность данных
|
||||
AccessibilityData:
|
||||
type: object
|
||||
properties:
|
||||
label:
|
||||
type: string
|
||||
|
||||
# Доступность
|
||||
Accessibility:
|
||||
type: object
|
||||
properties:
|
||||
accessibilityData:
|
||||
$ref: '#/components/schemas/AccessibilityData'
|
||||
|
||||
# WatchEndpoint
|
||||
WatchEndpoint:
|
||||
type: object
|
||||
properties:
|
||||
videoId:
|
||||
type: string
|
||||
|
||||
# BrowseEndpoint
|
||||
BrowseEndpoint:
|
||||
type: object
|
||||
properties:
|
||||
browseId:
|
||||
type: string
|
||||
canonicalBaseUrl:
|
||||
type: string
|
||||
|
||||
# Конечная точка навигации
|
||||
NavigationEndpoint:
|
||||
type: object
|
||||
properties:
|
||||
clickTrackingParams:
|
||||
type: string
|
||||
watchEndpoint:
|
||||
$ref: '#/components/schemas/WatchEndpoint'
|
||||
browseEndpoint:
|
||||
$ref: '#/components/schemas/BrowseEndpoint'
|
||||
|
||||
# Текст -> Runs
|
||||
TextRun:
|
||||
type: object
|
||||
properties:
|
||||
text:
|
||||
type: string
|
||||
navigationEndpoint:
|
||||
$ref: '#/components/schemas/NavigationEndpoint'
|
||||
|
||||
# Текст
|
||||
Text:
|
||||
type: object
|
||||
properties:
|
||||
runs:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/TextRun'
|
||||
accessibility:
|
||||
$ref: '#/components/schemas/Accessibility'
|
||||
|
||||
# Строковый параметр ключ-зачение
|
||||
KeyStringValue:
|
||||
type: object
|
||||
properties:
|
||||
key:
|
||||
type: string
|
||||
value:
|
||||
type: string
|
||||
|
||||
# Ассеты категории
|
||||
CategoryAssets:
|
||||
type: object
|
||||
properties:
|
||||
assetKey:
|
||||
type: string
|
||||
backgroundColor:
|
||||
type: string
|
||||
|
||||
# Расширение для владельцев детских видео
|
||||
KidsVideoOwnerExtension:
|
||||
type: object
|
||||
properties:
|
||||
externalChannelId:
|
||||
type: string
|
||||
|
||||
# Компактный видеорендерер
|
||||
CompactVideoRenderer:
|
||||
type: object
|
||||
properties:
|
||||
videoId:
|
||||
type: string
|
||||
title:
|
||||
$ref: '#/components/schemas/Text'
|
||||
longBylineText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
publishedTimeText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
viewCountText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
lengthText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
navigationEndpoint:
|
||||
$ref: '#/components/schemas/NavigationEndpoint'
|
||||
shortBylineText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
trackingParams:
|
||||
type: string
|
||||
shortViewCountText:
|
||||
$ref: '#/components/schemas/Text'
|
||||
accessibility:
|
||||
$ref: '#/components/schemas/Accessibility'
|
||||
kidsVideoOwnerExtension:
|
||||
$ref: '#/components/schemas/KidsVideoOwnerExtension'
|
||||
|
||||
# Средство визуализации раздела элемента
|
||||
ItemSectionRenderer:
|
||||
type: object
|
||||
properties:
|
||||
contents:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
compactVideoRenderer:
|
||||
$ref: '#/components/schemas/CompactVideoRenderer'
|
||||
trackingParams:
|
||||
type: string
|
||||
|
||||
# Рендер списка разделов
|
||||
SectionListRenderer:
|
||||
type: object
|
||||
properties:
|
||||
contents:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
itemSectionRenderer:
|
||||
$ref: '#/components/schemas/ItemSectionRenderer'
|
||||
trackingParams:
|
||||
type: string
|
||||
|
||||
# Визуализатор закрепленных сечений
|
||||
AnchoredSectionRenderer:
|
||||
type: object
|
||||
properties:
|
||||
title:
|
||||
type: string
|
||||
content:
|
||||
type: object
|
||||
properties:
|
||||
sectionListRenderer:
|
||||
$ref: '#/components/schemas/SectionListRenderer'
|
||||
|
||||
trackingParams:
|
||||
type: string
|
||||
categoryAssets:
|
||||
$ref: '#/components/schemas/CategoryAssets'
|
||||
categoryType:
|
||||
type: string
|
||||
|
||||
# Якорь экрана
|
||||
ScreenAnchor:
|
||||
type: object
|
||||
properties:
|
||||
anchoredSectionRenderer:
|
||||
$ref: '#/components/schemas/AnchoredSectionRenderer'
|
||||
|
||||
# Рендерер экрана
|
||||
ScreenRenderer:
|
||||
type: object
|
||||
properties:
|
||||
anchors:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/ScreenAnchor'
|
||||
|
||||
|
||||
# Параметры контента
|
||||
KidsAppContentSettings:
|
||||
type: object
|
||||
@ -127,6 +310,27 @@ contents: >+
|
||||
client:
|
||||
$ref: '#/components/schemas/RequestClient'
|
||||
|
||||
# Контекст ответа
|
||||
ResponseContext:
|
||||
type: object
|
||||
description: Response context
|
||||
properties:
|
||||
visitorData:
|
||||
type: string
|
||||
maxAgeSeconds:
|
||||
type: number
|
||||
serviceTrackingParams:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
properties:
|
||||
service:
|
||||
type: string
|
||||
params:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/KeyStringValue'
|
||||
|
||||
# Данные для запроса на получение контента определенного ресурса
|
||||
BrowseRequestPayload:
|
||||
type: object
|
||||
@ -136,6 +340,21 @@ contents: >+
|
||||
browseId:
|
||||
type: string
|
||||
example: FEkids_home
|
||||
|
||||
# Ответ на запрос получения контента определенного ресурса
|
||||
BrowseResponse:
|
||||
type: object
|
||||
properties:
|
||||
responseContext:
|
||||
$ref: '#/components/schemas/ResponseContext'
|
||||
contents:
|
||||
type: object
|
||||
properties:
|
||||
kidsHomeScreenRenderer:
|
||||
$ref: '#/components/schemas/ScreenRenderer'
|
||||
trackingParams:
|
||||
type: string
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user