8
0

- Add more components

This commit is contained in:
Aleksandr Garin 2023-03-28 18:36:33 +03:00
parent d8e57a6b2c
commit 826b0e39ec
2 changed files with 86 additions and 5 deletions

View File

@ -1,7 +1,7 @@
_id: spc_2b420b2bed1d4d868807303a581fb8c1 _id: spc_2b420b2bed1d4d868807303a581fb8c1
type: ApiSpec type: ApiSpec
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
modified: 1680013585576 modified: 1680017776645
created: 1679916396495 created: 1679916396495
fileName: youtubekids.yaml fileName: youtubekids.yaml
contents: >+ contents: >+
@ -156,12 +156,30 @@ contents: >+
externalChannelId: externalChannelId:
type: string type: string
# Thumbnail
Thumbnail:
type: object
properties:
url:
type: string
width:
type: number
height:
type: number
# Компактный видеорендерер # Компактный видеорендерер
CompactVideoRenderer: CompactVideoRenderer:
type: object type: object
properties: properties:
videoId: videoId:
type: string type: string
thumbnail:
type: object
properties:
thumbnails:
type: array
items:
$ref: '#/components/schemas/Thumbnail'
title: title:
$ref: '#/components/schemas/Text' $ref: '#/components/schemas/Text'
longBylineText: longBylineText:
@ -176,6 +194,13 @@ contents: >+
$ref: '#/components/schemas/NavigationEndpoint' $ref: '#/components/schemas/NavigationEndpoint'
shortBylineText: shortBylineText:
$ref: '#/components/schemas/Text' $ref: '#/components/schemas/Text'
channelThumbnail:
type: object
properties:
thumbnails:
type: array
items:
$ref: '#/components/schemas/Thumbnail'
trackingParams: trackingParams:
type: string type: string
shortViewCountText: shortViewCountText:
@ -224,9 +249,10 @@ contents: >+
properties: properties:
sectionListRenderer: sectionListRenderer:
$ref: '#/components/schemas/SectionListRenderer' $ref: '#/components/schemas/SectionListRenderer'
trackingParams: trackingParams:
type: string type: string
navigationEndpoint:
$ref: '#/components/schemas/NavigationEndpoint'
categoryAssets: categoryAssets:
$ref: '#/components/schemas/CategoryAssets' $ref: '#/components/schemas/CategoryAssets'
categoryType: categoryType:
@ -248,6 +274,13 @@ contents: >+
items: items:
$ref: '#/components/schemas/ScreenAnchor' $ref: '#/components/schemas/ScreenAnchor'
# Средство визуализации заголовка категории
CategoriesHeaderRenderer:
type: object
properties:
trackingParams:
type: string
# TODO
# Параметры контента # Параметры контента
KidsAppContentSettings: KidsAppContentSettings:
@ -365,6 +398,11 @@ contents: >+
properties: properties:
responseContext: responseContext:
$ref: '#/components/schemas/ResponseContext' $ref: '#/components/schemas/ResponseContext'
header:
type: object
properties:
kidsCategoriesHeaderRenderer:
$ref: '#/components/schemas/CategoriesHeaderRenderer'
contents: contents:
type: object type: object
properties: properties:

View File

@ -1,7 +1,7 @@
_id: req_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa _id: req_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa
type: Request type: Request
parentId: fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa parentId: fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa
modified: 1680013066020 modified: 1680014368438
created: 1679919032177 created: 1679919032177
url: "{{ base_url }}/browse" url: "{{ base_url }}/browse"
name: Browse resource content name: Browse resource content
@ -12,7 +12,50 @@ body:
text: |- text: |-
{ {
"context": { "context": {
"client": {
"clientName": "WEB_KIDS",
"clientVersion": "2.20230202.00.00",
"hl": "ru",
"gl": "RU",
"experimentsToken": "string",
"browserName": "Safari",
"deviceMake": "apple",
"browserVersion": "16.2",
"osName": "Macintosh",
"osVersion": "10_15_7",
"platform": "DESKTOP",
"kidsAppInfo": {
"contentSettings": {
"corpusPreference": "KIDS_CORPUS_PREFERENCE_TWEEN",
"kidsNoSearchMode": "YT_KIDS_NO_SEARCH_MODE_OFF"
},
"categorySettings": {
"enabledCategories": [
"approved_for_you",
"black_joy",
"camp",
"collections",
"earth",
"explore",
"favorites",
"gaming",
"halloween",
"hero",
"learning",
"making",
"move",
"music",
"reading",
"shared_by_parents",
"shows",
"soccer",
"sports",
"spotlight",
"winter"
]
}
}
}
}, },
"browseId": "FEkids_home" "browseId": "FEkids_home"
} }