- Add more components
- Add more request groups
This commit is contained in:
parent
7af6962c76
commit
c7873191f8
@ -1,11 +1,12 @@
|
|||||||
_id: spc_2b420b2bed1d4d868807303a581fb8c1
|
_id: spc_2b420b2bed1d4d868807303a581fb8c1
|
||||||
type: ApiSpec
|
type: ApiSpec
|
||||||
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
||||||
modified: 1679917892758
|
modified: 1679919032183
|
||||||
created: 1679916396495
|
created: 1679916396495
|
||||||
fileName: youtubekids.yaml
|
fileName: youtubekids.yaml
|
||||||
contents: |+
|
contents: >+
|
||||||
openapi: 3.0.3
|
openapi: 3.0.3
|
||||||
|
|
||||||
info:
|
info:
|
||||||
title: YouTube Kids Public API
|
title: YouTube Kids Public API
|
||||||
description: For generate API REST clients for Feelter UGC
|
description: For generate API REST clients for Feelter UGC
|
||||||
@ -29,22 +30,82 @@ contents: |+
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/BrowseRequest'
|
$ref: '#/components/schemas/BrowseRequestPayload'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Successful operation
|
description: Successful operation
|
||||||
components:
|
components:
|
||||||
schemas:
|
schemas:
|
||||||
|
KidsAppContentSettings:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
corpusPreference:
|
||||||
|
type: string
|
||||||
|
example: KIDS_CORPUS_PREFERENCE_TWEEN
|
||||||
|
kidsNoSearchMode:
|
||||||
|
type: string
|
||||||
|
example: YT_KIDS_NO_SEARCH_MODE_OFF
|
||||||
|
KidsAppCategorySettings:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
enabledCategories:
|
||||||
|
type: array
|
||||||
|
example: ["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"]
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
KidsAppInfo:
|
||||||
|
type: object
|
||||||
|
description: Kids application configuration
|
||||||
|
properties:
|
||||||
|
contentSettings:
|
||||||
|
$ref: '#/components/schemas/KidsAppContentSettings'
|
||||||
|
categorySettings:
|
||||||
|
$ref: '#/components/schemas/KidsAppCategorySettings'
|
||||||
RequestClient:
|
RequestClient:
|
||||||
type: object
|
type: object
|
||||||
|
description: Client information
|
||||||
|
properties:
|
||||||
|
clientName:
|
||||||
|
type: string
|
||||||
|
example: WEB_KIDS
|
||||||
|
clientVersion:
|
||||||
|
type: string
|
||||||
|
example: 2.20230202.00.00
|
||||||
|
hl:
|
||||||
|
type: string
|
||||||
|
example: ru
|
||||||
|
gl:
|
||||||
|
type: string
|
||||||
|
example: RU
|
||||||
|
experimentsToken:
|
||||||
|
type: string
|
||||||
|
browserName:
|
||||||
|
type: string
|
||||||
|
example: Safari
|
||||||
|
deviceMake:
|
||||||
|
type: string
|
||||||
|
example: apple
|
||||||
|
browserVersion:
|
||||||
|
type: string
|
||||||
|
example: '16.2'
|
||||||
|
osName:
|
||||||
|
type: string
|
||||||
|
example: Macintosh
|
||||||
|
osVersion:
|
||||||
|
type: string
|
||||||
|
example: 10_15_7
|
||||||
|
platform:
|
||||||
|
type: string
|
||||||
|
example: DESKTOP
|
||||||
|
kidsAppInfo:
|
||||||
|
$ref: '#/components/schemas/KidsAppInfo'
|
||||||
RequestContext:
|
RequestContext:
|
||||||
type: object
|
type: object
|
||||||
|
description: Request context
|
||||||
properties:
|
properties:
|
||||||
client:
|
client:
|
||||||
$ref: '#/components/schemas/RequestClient'
|
$ref: '#/components/schemas/RequestClient'
|
||||||
BrowseRequest:
|
BrowseRequestPayload:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
context:
|
context:
|
||||||
|
74
.insomnia/Request/req_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa.yml
Executable file
74
.insomnia/Request/req_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa.yml
Executable file
@ -0,0 +1,74 @@
|
|||||||
|
_id: req_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa
|
||||||
|
type: Request
|
||||||
|
parentId: fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa
|
||||||
|
modified: 1679919070840
|
||||||
|
created: 1679919032177
|
||||||
|
url: "{{ base_url }}/browse"
|
||||||
|
name: Browse resource content
|
||||||
|
description: ""
|
||||||
|
method: POST
|
||||||
|
body:
|
||||||
|
mimeType: application/json
|
||||||
|
text: |-
|
||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
parameters: []
|
||||||
|
headers:
|
||||||
|
- name: Content-Type
|
||||||
|
value: application/json
|
||||||
|
authentication: {}
|
||||||
|
metaSortKey: -1679919032177
|
||||||
|
isPrivate: false
|
||||||
|
settingStoreCookies: true
|
||||||
|
settingSendCookies: true
|
||||||
|
settingDisableRenderRequestBody: false
|
||||||
|
settingEncodeUrl: true
|
||||||
|
settingRebuildPath: true
|
||||||
|
settingFollowRedirects: global
|
10
.insomnia/RequestGroup/fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa.yml
Executable file
10
.insomnia/RequestGroup/fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa.yml
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
_id: fld_wrk_cd1160cf39f5497fa4711fe4fd6567de0f6a24fa
|
||||||
|
type: RequestGroup
|
||||||
|
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
||||||
|
modified: 1679919032178
|
||||||
|
created: 1679919032178
|
||||||
|
name: browse
|
||||||
|
description: Browse resource content
|
||||||
|
environment: {}
|
||||||
|
environmentPropertyOrder: null
|
||||||
|
metaSortKey: -1679919032178
|
Loading…
Reference in New Issue
Block a user