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=175090
http://wartears.org/api/v1/records/?format=api&limit=10&offset=175100", "previous": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=175080", "results": [ { "id": 208970, "kind": 1, "names": [ "Пупка Владислав" ], "year_of_birth": 1967, "public_comment": "53 года Ровненская обл\r\nпогиб 1.9.22", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741212, "record_id": 208970, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1967" } ], "attached_images": [ { "uid": "21000", "record": 208970, "image": "http://wartears.org/media/record-208970/dff0153db72f0b58c871104282cb28c0.png" } ] }, { "id": 208975, "kind": 1, "names": [ "ГОМОНЕЦЬ МИКОЛА ПИЛИПОВИЧ" ], "year_of_birth": 1980, "public_comment": "1980 Ровненская обл\r\nпогиб 25.09.22 в Николаевской обл", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741203, "record_id": 208975, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1980" } ], "attached_images": [] }, { "id": 465628, "kind": 1, "names": [ "Савоченко Олександр", "Савоченко Александр" ], "year_of_birth": 1986, "public_comment": "1986, с. Поліське Коропський район Чернігівська область\r\nОфіцер, военнослужащий 72 ОМБр\r\nПогиб 26 июля 2022 под Бахмутом\n\nAge: 36\n\nYear of Birth: 1986\n\nДата смерти: 26.07.2022", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 }, { "id": 38, "value": "Погибшие офицеры", "order": 0 }, { "id": 115, "value": "Дедупликация", "order": 0 } ], "attributes": [ { "id": 694741169, "record_id": 465628, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1986" } ], "attached_images": [] }, { "id": 44071, "kind": 1, "names": [ "Бугровский Сергей" ], "year_of_birth": 1987, "public_comment": "Источник: [https://volunteer.su/content/bugrovskiy-sergey](https://volunteer.su/content/bugrovskiy-sergey)\n\nДень рождения: 10 сентября 1987 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/05cc61a148743306d8daa63fc10a676a_0.jpg\n\n05cc61a148743306d8daa63fc10a676a_0.jpg\n\nг. Кривой Рог\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1958\n\nhttps://volunteer.su:443/sites/default/files/person/ca4f6e6b0e5164795cb743382bc95136.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/776dfacd557994bfcc001b26335af33a.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741171, "record_id": 44071, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1987" } ], "attached_images": [] }, { "id": 223941, "kind": 1, "names": [ "БОЙЧУК ВОЛОДИМИР" ], "year_of_birth": 1977, "public_comment": "1977 Львовская обл Стрый\r\nсержант\r\nпогиб 10.09.2022 в Николаевской обл", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741162, "record_id": 223941, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Сержант" }, { "id": 694741164, "record_id": 223941, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1977" } ], "attached_images": [ { "uid": "26321", "record": 223941, "image": "http://wartears.org/media/record-223941/60bd6172ff39a8cc70dd531bac71c797.png" } ] }, { "id": 250087, "kind": 1, "names": [ "Зварич Максим Александрович" ], "year_of_birth": 1992, "public_comment": "15.01.1992 г.р., Ровненская область\nПо информации от ЧВК Вагнер: погиб", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741165, "record_id": 250087, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694741167, "record_id": 250087, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1992" } ], "attached_images": [ { "uid": "rc-upload-1684132252340-2", "record": 250087, "image": "http://wartears.org/media/record-250087/691b9f16d653c06289ed57f75f3c1b82.png" } ] }, { "id": 44069, "kind": 1, "names": [ "Черненко Сергей" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/chernenko-sergey-2](https://volunteer.su/content/chernenko-sergey-2)\n\nДень рождения: 27 марта\n\nКартинка: https://volunteer.su:443/sites/default/files/person/08fc899e0c1039ab0c1f5c434733f39f_1.jpg\n\n08fc899e0c1039ab0c1f5c434733f39f_1.jpg\n\nГород Черкассы\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1959\n\nhttps://volunteer.su:443/sites/default/files/person/009b50f801e19aecefc7797f16c2582a.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/1b32d06dcac78619436d0d377f7ceb70.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/4115c99b9874f66661906a676fba94e9.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/9cbe57a499d0570e4b015900080958ec.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741140, "record_id": 44069, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1959" } ], "attached_images": [] }, { "id": 446124, "kind": 1, "names": [ "Васильєв Андрій" ], "year_of_birth": null, "public_comment": "\n\nДата погребения: 25.11.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 427264, "kind": 1, "names": [ "Дудник В'ячеслав Володимирович" ], "year_of_birth": 1997, "public_comment": "\n\nAge: 26\n\nДата рождения: 11.03.1997\n\nДата смерти: 02.11.2023\n\nДата погребения: 16.11.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741120, "record_id": 427264, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694741122, "record_id": 427264, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1997" } ], "attached_images": [] }, { "id": 256446, "kind": 1, "names": [ "Камінський Андрій Олександрович", "Каминский Андрей Александрович" ], "year_of_birth": 1989, "public_comment": "24.09.1989 г.р. из Луцка Волынской обл.\n3 отделение 3 взвода 1 роты 2 отдельного стрелкового батальона ТрО Лучка. Сдался в плен с группой из 16 человек. Был в плену на 31 марта 2023. Обменян 11 июня 2023.", "last_modified": "2024-04-28", "tags": [ { "id": 110, "value": "Обмен 2023-06-11", "order": 0 }, { "id": 90, "value": "список Москальковой", "order": 0 } ], "attributes": [ { "id": 694741116, "record_id": 256446, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1989" } ], "attached_images": [ { "uid": "00117f8b-080e-48ec-a7d4-d6fe80c8503c", "record": 256446, "image": "http://wartears.org/media/record-8953/edd725cf0b84bd6f5de114838cbc331d.jpg" } ] } ] }{ "count": 175615, "next": "