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=176090
{ "count": 176464, "next": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=176100", "previous": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=176080", "results": [ { "id": 434692, "kind": 1, "names": [ "Мірончик Андрій Сергійович" ], "year_of_birth": 2002, "public_comment": "\n\nAge: 21\n\nДата рождения: 05.09.2002\n\nДата смерти: 06.11.2023\n\nДата погребения: 10.11.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694739934, "record_id": 434692, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694739936, "record_id": 434692, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "2002" } ], "attached_images": [] }, { "id": 44026, "kind": 1, "names": [ "Юрковецкий Вячеслав" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/yurkoveckiy-vyacheslav](https://volunteer.su/content/yurkoveckiy-vyacheslav)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/3b757364383ca4374a614c8d5bddc15e_0.jpg\n\n3b757364383ca4374a614c8d5bddc15e_0.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1953\n\nhttps://volunteer.su:443/sites/default/files/person/d5d95ede74dfa6f740f614a9e29aa88c_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/2864101c52c5371fca686f1b4f8b6d61_0.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739921, "record_id": 44026, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1953" } ], "attached_images": [] }, { "id": 44022, "kind": 1, "names": [ "Апостол Андрей" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/apostol-andrey](https://volunteer.su/content/apostol-andrey)\n\nДень рождения: 29 декабря\n\nКартинка: https://volunteer.su:443/sites/default/files/person/ee620c6a08fcb75f27fccf46386a051c_0.jpg\n\nee620c6a08fcb75f27fccf46386a051c_0.jpg\n\nгород Киев\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1954\n\nhttps://volunteer.su:443/sites/default/files/person/64e321e76f1315c2644d8ea78f4c2114.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/51dec58f53c02415596212ffe0db420c.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/6a0d6ccd6d59e309efd9143695de9640_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/741ff64a633ff9b94bf24a15fcc47db0_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/149e28ad7fb7641e7cf7dacca151b783.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739915, "record_id": 44022, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1954" } ], "attached_images": [] }, { "id": 44070, "kind": 1, "names": [ "Федоренко Виталина" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/fedorenko-vitalina](https://volunteer.su/content/fedorenko-vitalina)\n\nДень рождения: 27 июня\n\nКартинка: https://volunteer.su:443/sites/default/files/person/58d1cdb36a011cde6b4e02b04f5e5cf7.jpg\n\n58d1cdb36a011cde6b4e02b04f5e5cf7.jpg\n\nГород Счастье\n\nПособник\n\npersons?page=1959\n\nhttps://volunteer.su:443/sites/default/files/person/f15559f6f504fab16112ac53ffa666a9.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/08fc899e0c1039ab0c1f5c434733f39f_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/fdbf183df5749204889ffa2b78df7d07_0.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739919, "record_id": 44070, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1959" } ], "attached_images": [] }, { "id": 44021, "kind": 1, "names": [ "Конюша Михаил" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/konyusha-mihail](https://volunteer.su/content/konyusha-mihail)\n\nДень рождения: 21 июля\n\nКартинка: https://volunteer.su:443/sites/default/files/person/d6e322fbdb9aba09c76a8464b8f06ab4_0.jpg\n\nd6e322fbdb9aba09c76a8464b8f06ab4_0.jpg\n\nГород:Чернигов\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1954\n\nhttps://volunteer.su:443/sites/default/files/person/e36fb687efcdf5caadbe08a432ba809f.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/989f880910c7e114b11b35dfa50026b7.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739917, "record_id": 44021, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1954" } ], "attached_images": [] }, { "id": 44020, "kind": 1, "names": [ "Сагайдачный Александр" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/sagaydachnyy-aleksandr](https://volunteer.su/content/sagaydachnyy-aleksandr)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/ee620c6a08fcb75f27fccf46386a051c.jpg\n\nee620c6a08fcb75f27fccf46386a051c.jpg\n\nЗамечен под Широкино\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1954\n\nhttps://volunteer.su:443/sites/default/files/person/ce150f6a49c9933172d979457f146624.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/d5d95ede74dfa6f740f614a9e29aa88c.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/903b69b46a7bec3747b5defbdfbc5f74.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739910, "record_id": 44020, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1954" } ], "attached_images": [] }, { "id": 44090, "kind": 1, "names": [ "Бульботко Алексей" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/bulbotko-aleksey](https://volunteer.su/content/bulbotko-aleksey)\n\nДень рождения: 25 ноября\n\nКартинка: https://volunteer.su:443/sites/default/files/person/8dc877162db989c91fa934d026393a49.jpg\n\n8dc877162db989c91fa934d026393a49.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1961\n\nhttps://volunteer.su:443/sites/default/files/person/4bdca6506154d45ee6150724bd0b2cb5_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/7716bcf6e4c32cc47f1c36358997c5b3_1.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739902, "record_id": 44090, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1961" } ], "attached_images": [] }, { "id": 46640, "kind": 1, "names": [ "Дорош Тарас Русланович" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/dorosh-taras-ruslanovich-0](https://volunteer.su/content/dorosh-taras-ruslanovich-0)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/c957d2998e1eb24f4e5a8966d9a89d01.jpg\n\nc957d2998e1eb24f4e5a8966d9a89d01.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=2216\n\nhttps://volunteer.su:443/sites/default/files/person/384ec8ff16c70fdbbbde34002e5d50b1.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [], "attached_images": [] }, { "id": 44019, "kind": 1, "names": [ "Лаба Владимир" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/laba-vladimir](https://volunteer.su/content/laba-vladimir)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/b3a0687c96c426c23e8b7b8d79fc0e1a.jpg\n\nb3a0687c96c426c23e8b7b8d79fc0e1a.jpg\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1953\n\nhttps://volunteer.su:443/sites/default/files/person/781fde901c3a47b9188dc825708b0bd0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/f53c386f55570560af3c25281188c23d.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/4637ab73f1299fe932574630306c6de2.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/2b4b84bd9e5e397afa0fc020083cb9f4_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/aaf5cbc32d5decfbe1a48104806982de.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739891, "record_id": 44019, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1953" } ], "attached_images": [] }, { "id": 44018, "kind": 1, "names": [ "Голык Андрей" ], "year_of_birth": 1983, "public_comment": "Источник: [https://volunteer.su/content/golyk-andrey](https://volunteer.su/content/golyk-andrey)\n\nДень рождения: 2 декабря 1983 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/b467e2c4c70aa4a869c88cc4f2634a55.jpg\n\nb467e2c4c70aa4a869c88cc4f2634a55.jpg\n\nРодной город:Катеринополь\n\nПособник\n\npersons?page=1953\n\nhttps://volunteer.su:443/sites/default/files/person/61c8949087ab84fc9a0961899674449a.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/3b757364383ca4374a614c8d5bddc15e.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/a61e4b8ff45c6b91cc5a296161a9f235_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/b9386537c7f3927da63681422bc340d5.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694739869, "record_id": 44018, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1983" } ], "attached_images": [] } ] }
WarTears.org