Record List
Значения поля и фильтра kind
:
- 0 - Что угодно
- 1 - Человек
- 2 - Организация
Параметры запроса:
kind
- если указан, то будут возвращены только записи этой разновидности (только люди или только организации соответственно)offset
- выбрать записи начиная с указанойlimit
- выбрать столько записей (по-умолчанию 10, максимум - 1000)id
- выбрать только запись с этим идентификатором
Подробная схема - за кнопкой OPTIONS (HTTP OPTIONS
запрос)
Постраничный вывод записей - ссылки в полях next
и previous
. Альтернативно - GET-параметры limit
и offset
.
GET /api/v1/records/?format=api&offset=175020
https://wartears.org/api/v1/records/?format=api&limit=10&offset=175030", "previous": "https://wartears.org/api/v1/records/?format=api&limit=10&offset=175010", "results": [ { "id": 39391, "kind": 1, "names": [ "Рянська Оксана Олександрівна", "Рянская Оксана Александровна" ], "year_of_birth": 1986, "public_comment": "Источник: [https://volunteer.su/content/ryanska-oksana-oleksandrivna](https://volunteer.su/content/ryanska-oksana-oleksandrivna)\n\nДень рождения: 12.10.1986\n\nКартинка: https://volunteer.su:443/sites/default/files/person/3e617a268ae747bcb886eec88c1cd4cf.jpg\n\n3e617a268ae747bcb886eec88c1cd4cf.jpg\n\npersons?page=1491\n\nПолк Азов\n\nhttps://volunteer.su:443/sites/default/files/person/877b08e8f01052d69c837e3dda068a8e.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741958, "record_id": 39391, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1986" } ], "attached_images": [] }, { "id": 450333, "kind": 1, "names": [ "Яковенко Костянтин" ], "year_of_birth": 1974, "public_comment": "\n\nAge: 49\n\nYear of Birth: 1974\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741952, "record_id": 450333, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1974" } ], "attached_images": [] }, { "id": 450331, "kind": 1, "names": [ "Курський Олег" ], "year_of_birth": null, "public_comment": "", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 44513, "kind": 1, "names": [ "Царский Андрей" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/carskiy-andrey](https://volunteer.su/content/carskiy-andrey)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/76b8e7d832534dbf315e5ba03fe1e3c5.jpg\n\n76b8e7d832534dbf315e5ba03fe1e3c5.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=2003\n\nhttps://volunteer.su:443/sites/default/files/person/f57c745535735baec0e37b8e1fa040c2_1.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/dd0dc7cd587af1cc6edc69e26baad9e2.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/19715c8c5b5eab4e418ed1f3d10fefa3.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/55117250244b942c9838c1f430174760.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/99a440604e8ee4733d89181ec3f6c210_0.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741936, "record_id": 44513, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "2003" } ], "attached_images": [] }, { "id": 446186, "kind": 1, "names": [ "Ваврух Орест" ], "year_of_birth": null, "public_comment": "\n\nДата погребения: 18.04.2022\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 209101, "kind": 1, "names": [ "Мокринчук Олександр Віталійович" ], "year_of_birth": null, "public_comment": "<br>\r\n05.08.1990\r\n\r\nА4053\r\n\r\nсолдат Номер обслуги\r\n\r\nМінно-вибухова травма\r\n\r\nЗагинув: 02.05.2022\r\n\r\n<br>\r\n<br>", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741925, "record_id": 209101, "attribute_kind_id": 1, "attribute_kind_slug": "military-unit", "value": "А4053" }, { "id": 694741926, "record_id": 209101, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694741928, "record_id": 209101, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1990" } ], "attached_images": [] }, { "id": 450330, "kind": 1, "names": [ "Марченко Дмитро" ], "year_of_birth": null, "public_comment": "", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 450328, "kind": 1, "names": [ "Холявчук Олег" ], "year_of_birth": null, "public_comment": "\n\nAge: 37\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 189922, "kind": 1, "names": [ "Чернавін Богдан Олександрович", "Чернавин Богдан Александрович" ], "year_of_birth": 1989, "public_comment": "03.12.1989.\r\nСдался в Мариуполе не позднее 27.05.2022.\r\nПроизведен обмен 31.12.2022.\r\n\r\n<br>", "last_modified": "2024-04-28", "tags": [ { "id": 33, "value": "Еленовка", "order": 0 } ], "attributes": [ { "id": 694741912, "record_id": 189922, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1989" } ], "attached_images": [ { "uid": "13780", "record": 189922, "image": "https://wartears.org/media/record-8251/2298956114fdb9e400eb677605bf4bb2.jpg" } ] }, { "id": 450325, "kind": 1, "names": [ "Мельник Віталій" ], "year_of_birth": null, "public_comment": "", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] } ] }{ "count": 175685, "next": "