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=176250
{ "count": 176354, "next": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=176260", "previous": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=176240", "results": [ { "id": 268449, "kind": 1, "names": [ "Льода Роман Романович" ], "year_of_birth": 1983, "public_comment": "1983 Львовская обл Радехов\r\nпогиб 2.4.22 в Бахмуте\n\n1983 Львовская обл Радеховская общ\r\nпогиб 2.4.23 Бахмут", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694737399, "record_id": 268449, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1983" } ], "attached_images": [ { "uid": "68c14f66-8d3d-44bb-bb19-b135bd961062", "record": 268449, "image": "http://wartears.org/media/record-230516/ddfeff5fc8a26057aee9e44515ec355a.png" }, { "uid": "b4146471-7d7e-40b2-abb1-b6a701ffd5af", "record": 268449, "image": "http://wartears.org/media/record-230516/f668419f8f14a4509a5a52d5e3e0ea15.png" }, { "uid": "95eb83b5-8325-4c32-ae38-78aa6b1ab09a", "record": 268449, "image": "http://wartears.org/media/record-231033/e1759e3c91c9cd6eb694d435843e456f.png" }, { "uid": "21b401d0-f4d6-4543-bb1c-ea2518b0f0dc", "record": 268449, "image": "http://wartears.org/media/record-231033/854e6acb0eae8e4e66d932c7f49ad5b6.png" } ] }, { "id": 43907, "kind": 1, "names": [ "Скосогоренко Владимир" ], "year_of_birth": 1985, "public_comment": "Источник: [https://volunteer.su/content/skosogorenko-vladimir](https://volunteer.su/content/skosogorenko-vladimir)\n\nДень рождения: 5 ноября 1985 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/1a3578bd60bcb6f649178f80e182124b.jpg\n\n1a3578bd60bcb6f649178f80e182124b.jpg\n\nГород Винница\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1942\n\nhttps://volunteer.su:443/sites/default/files/person/626f9783952943a36dc1799943cbb728_1.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/e80b691bcc73fb385913164da2d75907.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694737394, "record_id": 43907, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1985" } ], "attached_images": [] }, { "id": 268467, "kind": 1, "names": [ "Нелюб Михайло Валерійович" ], "year_of_birth": null, "public_comment": "Дата рождения: 10.06.1986\nПоследнее известное местонахождение: Бахмудський напрямок\nПропал без вести.", "last_modified": "2024-04-28", "tags": [ { "id": 15, "value": "Пропал", "order": 800 } ], "attributes": [ { "id": 694737391, "record_id": 268467, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1986" } ], "attached_images": [ { "uid": "rc-upload-1702554753387-3", "record": 268467, "image": "http://wartears.org/media/record-268467/d2b5ca33bd970f64a6301fa75ae2eb22.png" }, { "uid": "rc-upload-1702555543931-4", "record": 268467, "image": "http://wartears.org/media/record-268467/d2b5ca33bd970f64a6301fa75ae2eb22.png" } ] }, { "id": 64479, "kind": 1, "names": [ "Петров Акакий" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/petrov-akakiy](https://volunteer.su/content/petrov-akakiy)\n\nДень рождения: 21 июня\n\nКартинка: \n\nКиев\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3999\n\nhttp://vk.com/id146154510", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] }, { "id": 43906, "kind": 1, "names": [ "Спас Кирилл" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/spas-kirill-0](https://volunteer.su/content/spas-kirill-0)\n\nДень рождения: 1 августа\n\nКартинка: https://volunteer.su:443/sites/default/files/person/e49b788c97021bc9ee19845097a2409a.jpg\n\ne49b788c97021bc9ee19845097a2409a.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1942\n\nhttps://volunteer.su:443/sites/default/files/person/7014c321d29386abdfb42fe895011cb7.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/47be51ca71738bc0061604812c34c6b8.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/4099ad63ea84934d657fee1f4e52b1f0_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/07295c2aadff0ff6f1627086d7de208f.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/8ce71572186ce3439a16b244a65858a8.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] }, { "id": 255283, "kind": 1, "names": [ "Ковбасюк Володимир Петрович", "Ковбасюк Владимир Петрович" ], "year_of_birth": 1975, "public_comment": "", "last_modified": "2024-04-28", "tags": [ { "id": 15, "value": "Пропал", "order": 800 } ], "attributes": [ { "id": 694737386, "record_id": 255283, "attribute_kind_id": 1, "attribute_kind_slug": "military-unit", "value": "А3017" }, { "id": 694737388, "record_id": 255283, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1975" } ], "attached_images": [ { "uid": "rc-upload-1686573143704-3", "record": 255283, "image": "http://wartears.org/media/record-255283/d2b5ca33bd970f64a6301fa75ae2eb22.png" }, { "uid": "rc-upload-1705561670048-4", "record": 255283, "image": "http://wartears.org/media/record-255283/d2b5ca33bd970f64a6301fa75ae2eb22.png" } ] }, { "id": 268474, "kind": 1, "names": [ "Пилипенко Олександр" ], "year_of_birth": 1994, "public_comment": "**1994 Лисичанск, похоронили во Львове**\r\nветеран АТО\r\n24 бригада\r\nпогиб **19.09.2022**\n\n1994 Лисичанск\r\n24 ОМБр\r\nпогиб 19.09.22\r\nпохоронили во Львове", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694737380, "record_id": 268474, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1994" } ], "attached_images": [ { "uid": "4da827a0-07d8-408c-b73a-c6567844df87", "record": 268474, "image": "http://wartears.org/media/record-226124/c6e0fdeb34775b0cde9fd47cd9c6d470.png" } ] }, { "id": 268475, "kind": 1, "names": [ "Федоров Сергій" ], "year_of_birth": 1975, "public_comment": "**1975 Львов**\r\n24 ОМБр\r\nпогиб **19.12.2022**\n\n**06.09.1975 Львов**\r\n24 ОМБр\r\nпогиб **19.12.2022**", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694737375, "record_id": 268475, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1975" } ], "attached_images": [ { "uid": "1fb709cb-d120-4d9d-bba2-bf80d92b364d", "record": 268475, "image": "http://wartears.org/media/record-230038/ac87767886bafcc960d530e565533ff9.png" }, { "uid": "f118e206-a93e-4daa-88f0-70c3aef4ad1a", "record": 268475, "image": "http://wartears.org/media/record-230104/4bbae15f3190a1a866733fb8e7236322.png" } ] }, { "id": 291952, "kind": 1, "names": [ "НАЙМАЙ Андрій Вікторович" ], "year_of_birth": 1992, "public_comment": "\n\nДата народження: 16.12.1992\n", "last_modified": "2024-04-28", "tags": [ { "id": 125, "value": "Обмен 2024-01-31", "order": 0 } ], "attributes": [ { "id": 694737364, "record_id": 291952, "attribute_kind_id": 1, "attribute_kind_slug": "military-unit", "value": "А1249" }, { "id": 694737366, "record_id": 291952, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1992" } ], "attached_images": [] }, { "id": 291950, "kind": 1, "names": [ "НАЗЮТА Олександр Анатолійович" ], "year_of_birth": 1974, "public_comment": "\n\nДата народження: 08.04.1974\n", "last_modified": "2024-04-28", "tags": [ { "id": 125, "value": "Обмен 2024-01-31", "order": 0 } ], "attributes": [ { "id": 694737368, "record_id": 291950, "attribute_kind_id": 1, "attribute_kind_slug": "military-unit", "value": "А0989" }, { "id": 694737370, "record_id": 291950, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1974" } ], "attached_images": [] } ] }
WarTears.org