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=147010
{ "count": 177390, "next": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=147020", "previous": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=147000", "results": [ { "id": 440865, "kind": 1, "names": [ "Лайком Іван Іванович" ], "year_of_birth": 1974, "public_comment": "\n\nAge: 49\n\nYear of Birth: 1974\n\nДата смерти: 25.10.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694841466, "record_id": 440865, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1974" } ], "attached_images": [] }, { "id": 429597, "kind": 1, "names": [ "Шевченко Віктор В’ячеславович" ], "year_of_birth": 1997, "public_comment": "\n\nAge: 26\n\nYear of Birth: 1997\n\nДата смерти: 10.08.2023\n\nДата погребения: 16.08.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694841460, "record_id": 429597, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Сержант" }, { "id": 694841462, "record_id": 429597, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1997" } ], "attached_images": [] }, { "id": 61440, "kind": 1, "names": [ "Тимощук Александр" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/timoshchuk-aleksandr](https://volunteer.su/content/timoshchuk-aleksandr)\n\nДень рождения: 22 сентября\n\nКартинка: https://volunteer.su:443/sites/default/files/person/0b76b77e24cd089ca379d3195bd63796_1.jpg\n\n0b76b77e24cd089ca379d3195bd63796_1.jpg\n\nДнепропетровск\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3696\n\nhttps://volunteer.su:443/sites/default/files/person/1fdb51453f6ddce557d656090e39f259.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/61d64bab1acfc47b52df8deaa8607091.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/d975c04142fc47181dc4c4eab9576a0e.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] }, { "id": 61439, "kind": 1, "names": [ "Порхун Артем Александрович" ], "year_of_birth": 1988, "public_comment": "Источник: [https://volunteer.su/content/porhun-artem-aleksandrovich](https://volunteer.su/content/porhun-artem-aleksandrovich)\n\nДень рождения: 10 августа 1988 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/c2c6b6a32c75216ed2a7b95d10c83b19_0.jpg\n\nc2c6b6a32c75216ed2a7b95d10c83b19_0.jpg\n\nБалта\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3695\n\nhttps://volunteer.su:443/sites/default/files/person/f0326b3ef2ae5848cb952ec40860aabf.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/4c97f0b8ba65636a07ea4195e729a023_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/89869d29260ef1d479fecb17b7b8de1f.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694841464, "record_id": 61439, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1988" } ], "attached_images": [] }, { "id": 61438, "kind": 1, "names": [ "Рябенко Евгений" ], "year_of_birth": 1978, "public_comment": "Источник: [https://volunteer.su/content/ryabenko-evgeniy](https://volunteer.su/content/ryabenko-evgeniy)\n\nДень рождения: 17 июля 1978 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/6c8539c6eaa802a4321a57407e9e669d.jpg\n\n6c8539c6eaa802a4321a57407e9e669d.jpg\n\nДнепропетровск\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3695\n\nhttps://volunteer.su:443/sites/default/files/person/0b76b77e24cd089ca379d3195bd63796_2.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/4efd949fbaf2d5e5b4b6cbb4db1262d8.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694841459, "record_id": 61438, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1978" } ], "attached_images": [] }, { "id": 61437, "kind": 1, "names": [ "Лагутин Александр" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/lagutin-aleksandr](https://volunteer.su/content/lagutin-aleksandr)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/6da16ae361bb7841482f1ab54d622947.jpg\n\n6da16ae361bb7841482f1ab54d622947.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3695\n\nhttps://volunteer.su:443/sites/default/files/person/0066b9d7e74f6965347e1d1caa39b902.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/9100ebd842a5c3187862305e1e4d9d1b_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/7ae9ff029795f8841e1ec2435718e473.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] }, { "id": 408387, "kind": 1, "names": [ "Грішин Анатолій Володимирович" ], "year_of_birth": 2002, "public_comment": "\n\nAge: 20\n\nДата рождения: 29.10.2002\n\nДата смерти: 07.10.2023\n\nДата погребения: 12.10.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694841452, "record_id": 408387, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Матрос" }, { "id": 694841454, "record_id": 408387, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "2002" } ], "attached_images": [] }, { "id": 411211, "kind": 1, "names": [ "Камишний Дмитро Михайлович" ], "year_of_birth": 1977, "public_comment": "\n\nAge: 46\n\nДата рождения: 27.06.1977\n\nДата смерти: 02.10.2023\n\nДата погребения: 02.12.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694841455, "record_id": 411211, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694841457, "record_id": 411211, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1977" } ], "attached_images": [] }, { "id": 429595, "kind": 1, "names": [ "Тетерук Сергій Сергійович" ], "year_of_birth": 1990, "public_comment": "\n\nAge: 32\n\nДата рождения: 27.01.1990\n\nДата смерти: 28.09.2022\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694841446, "record_id": 429595, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Сержант" }, { "id": 694841448, "record_id": 429595, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1990" } ], "attached_images": [] }, { "id": 61477, "kind": 1, "names": [ "Ширяев Виктор" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/shiryaev-viktor](https://volunteer.su/content/shiryaev-viktor)\n\nДень рождения: 18 апреля\n\nКартинка: https://volunteer.su:443/sites/default/files/person/d550d41f5bc56f485876838032c082cd.jpg\n\nd550d41f5bc56f485876838032c082cd.jpg\n\nПавлыш\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=3699\n\nhttps://volunteer.su:443/sites/default/files/person/ec1af46452fd2ca2e98d4dcd26d7fdd9.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/15aeef520fce178d2d43644d0d3a61a1.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] } ] }
WarTears.org