Получить ресурсы

Request

GET

https://api.wiki.yandex.net/v1/pages/{idx}/resources

Path parameters

Name

Description

idx*

Type: integer

Query parameters

Name

Description

cursor

Type: string

order_by

Type: string

Если указано, отсортировать выдачу по полю в направлении direction

Enum: name_title, created_at

order_direction

Type: string

Если указано поле order_by, направление сортировки

Default: asc

page_id

Type: integer

legacy Номер страницы выдачи

Default: 1

Min value: 1

page_size

Type: integer

Число результатов на странице выдачи.

Default: 25

Min value: 1

Max value: 50

q

Type: string

Поиск по заголовку
Поиск по заголовку

Max length: 255

types

Type: string

Необходимые типы ресурсов, через запятую. Возможные значения: attachment, sharepoint_resource, grid

Responses

200 OK

OK

Body

application/json
{
    "results": [
        {
            "type": "attachment"
        }
    ],
    "next_cursor": "string",
    "prev_cursor": "string"
}

Name

Description

results*

Type: Resource[]

next_cursor

Type: string

prev_cursor

Type: string

Resource

Name

Description

item*

Type: any

type*

Type: ResourceType

An enumeration.

Enum: attachment, grid, sharepoint_resource

ResourceType

An enumeration.

Type

Description

ResourceType

Enum: attachment, grid, sharepoint_resource

No longer supported, please use an alternative and newer version.

Previous