You've already forked youtubekids-api-design
- Fixes
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
_id: spc_2b420b2bed1d4d868807303a581fb8c1
|
||||
type: ApiSpec
|
||||
parentId: wrk_cd1160cf39f5497fa4711fe4fd6567de
|
||||
modified: 1680013029849
|
||||
modified: 1680013585576
|
||||
created: 1679916396495
|
||||
fileName: youtubekids.yaml
|
||||
contents: >+
|
||||
@ -33,17 +33,24 @@ contents: >+
|
||||
description: Get content for resource
|
||||
operationId: browse
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/BrowseRequestPayload'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful operation
|
||||
description: OK
|
||||
content:
|
||||
'application/json':
|
||||
"schema":
|
||||
$ref: '#/components/schemas/BrowseResponse'
|
||||
$ref: '#/components/schemas/BrowseResponsePayload'
|
||||
'400':
|
||||
description: Bad Request
|
||||
content:
|
||||
'application/json':
|
||||
"schema":
|
||||
$ref: '#/components/schemas/ErrorResponsePayload'
|
||||
|
||||
|
||||
# Компоненты
|
||||
@ -52,6 +59,17 @@ contents: >+
|
||||
# Схемы данных
|
||||
schemas:
|
||||
|
||||
# Ошибка
|
||||
Error:
|
||||
type: object
|
||||
properties:
|
||||
message:
|
||||
type: string
|
||||
domain:
|
||||
type: string
|
||||
reason:
|
||||
type: string
|
||||
|
||||
# Доступность данных
|
||||
AccessibilityData:
|
||||
type: object
|
||||
@ -342,7 +360,7 @@ contents: >+
|
||||
example: FEkids_home
|
||||
|
||||
# Ответ на запрос получения контента определенного ресурса
|
||||
BrowseResponse:
|
||||
BrowseResponsePayload:
|
||||
type: object
|
||||
properties:
|
||||
responseContext:
|
||||
@ -355,6 +373,25 @@ contents: >+
|
||||
trackingParams:
|
||||
type: string
|
||||
|
||||
# Ответ с ошибкой
|
||||
ErrorResponsePayload:
|
||||
type: object
|
||||
properties:
|
||||
error:
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: number
|
||||
example: 400
|
||||
message:
|
||||
type: string
|
||||
errors:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Error'
|
||||
status:
|
||||
type: string
|
||||
example: FAILED_PRECONDITION
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user