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=175600
{ "count": 176181, "next": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=175610", "previous": "http://wartears.org/api/v1/records/?format=api&limit=10&offset=175590", "results": [ { "id": 209043, "kind": 1, "names": [ "Хомич Михайло Петрович" ], "year_of_birth": 1972, "public_comment": "1972 Ровненская обл\r\nпогиб в 20.11.2022 Марьинка", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741590, "record_id": 209043, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1972" } ], "attached_images": [ { "uid": "21067", "record": 209043, "image": "http://wartears.org/media/record-209043/053aa44d567b569841521ca402104da5.png" } ] }, { "id": 446141, "kind": 1, "names": [ "Панасюк Юрій" ], "year_of_birth": null, "public_comment": "\n\nДата погребения: 04.03.2023\n", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [], "attached_images": [] }, { "id": 465636, "kind": 1, "names": [ "Острогруд Юрій", "ОСТРОГРУД Юрій Михайлович" ], "year_of_birth": 1966, "public_comment": "Age: 55\n\nДата смерти: 03.03.2022\n\nДата погребения: 29.10.2022\n\n1966 Чернигов\r\nвступил в Черниговское ТрО\r\nпогиб 3.3.22 от авиаудара", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 }, { "id": 115, "value": "Дедупликация", "order": 0 } ], "attributes": [ { "id": 694741583, "record_id": 465636, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1966" } ], "attached_images": [ { "uid": "85febac5-98bf-4a87-8db1-2a0e9a7ab9fa", "record": 465636, "image": "http://wartears.org/media/record-213927/d0edcbf499450e6baa7d98a7530dc6ac.png" } ] }, { "id": 38890, "kind": 1, "names": [ "Мельник Данило Борисович" ], "year_of_birth": 1993, "public_comment": "Источник: [https://volunteer.su/content/melnik-danilo-borisovich](https://volunteer.su/content/melnik-danilo-borisovich)\n\nДень рождения: 10.06.1993\n\nКартинка: \n\nСолдат\n\npersons?page=1441\n\nБатальон Донбасс; ДРФО: 3412902039", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741574, "record_id": 38890, "attribute_kind_id": 3, "attribute_kind_slug": "rank", "value": "Солдат" }, { "id": 694741576, "record_id": 38890, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1993" } ], "attached_images": [] }, { "id": 204572, "kind": 1, "names": [ "Харченко Александр Сергеевич", "Харченко Олександр Сергійович" ], "year_of_birth": 1999, "public_comment": "23 года Харьковская обл\r\nпогиб 23.10.22 в Краматорском р-не\r\n\r\n<br>", "last_modified": "2024-04-28", "tags": [ { "id": 13, "value": "Погиб", "order": 1000 } ], "attributes": [ { "id": 694741563, "record_id": 204572, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1999" } ], "attached_images": [ { "uid": "17654", "record": 204572, "image": "http://wartears.org/media/record-204571/59c2a1f86f578542d8fa315e984b5f8e.png" } ] }, { "id": 44101, "kind": 1, "names": [ "Молоток Николай" ], "year_of_birth": 1990, "public_comment": "Источник: [https://volunteer.su/content/molotok-nikolay](https://volunteer.su/content/molotok-nikolay)\n\nДень рождения: 6 июля 1990 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/623e2864bb519dc3846fe66a40932f0a.jpg\n\n623e2864bb519dc3846fe66a40932f0a.jpg\n\nг. Львов\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1962\n\nhttps://volunteer.su:443/sites/default/files/person/64075951ea51eefc421c990791dcc303.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/7716bcf6e4c32cc47f1c36358997c5b3_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/46d9375134acdfa1cbfbe7395f1d910d.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741557, "record_id": 44101, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1990" } ], "attached_images": [] }, { "id": 44100, "kind": 1, "names": [ "Олейник Станислав" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/oleynik-stanislav-0](https://volunteer.su/content/oleynik-stanislav-0)\n\nДень рождения: 1 марта\n\nКартинка: https://volunteer.su:443/sites/default/files/person/49bc96d8d95c35bab97c1c30e50add54.jpg\n\n49bc96d8d95c35bab97c1c30e50add54.jpg\n\nГород Черновцы\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1961\n\nhttps://volunteer.su:443/sites/default/files/person/568ca3ea1215b22735963fb64f6c9a2e.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/d9b7bb17a98eb96d5207ab3c0561b06b_0.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741546, "record_id": 44100, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1961" } ], "attached_images": [] }, { "id": 44099, "kind": 1, "names": [ "Демчук Валентин" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/demchuk-valentin](https://volunteer.su/content/demchuk-valentin)\n\nДень рождения: 3 апреля\n\nКартинка: https://volunteer.su:443/sites/default/files/person/e530ab99963e42c03b007ab4f593e4fe.jpg\n\ne530ab99963e42c03b007ab4f593e4fe.jpg\n\nГород Ровно\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1961\n\nhttps://volunteer.su:443/sites/default/files/person/40af1c61280c70c8f1e98ed26ac55673_0.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741542, "record_id": 44099, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1961" } ], "attached_images": [] }, { "id": 44098, "kind": 1, "names": [ "Черниенко Алина" ], "year_of_birth": 1990, "public_comment": "Источник: [https://volunteer.su/content/chernienko-alina](https://volunteer.su/content/chernienko-alina)\n\nДень рождения: 7 февраля 1990 год\n\nКартинка: https://volunteer.su:443/sites/default/files/person/568ca3ea1215b22735963fb64f6c9a2e_0.jpg\n\n568ca3ea1215b22735963fb64f6c9a2e_0.jpg\n\nПособник\n\npersons?page=1961\n\nhttps://volunteer.su:443/sites/default/files/person/554e8aa4659d61ca0dcbc56d585ffe5b.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/af4f04d15be2826da4790dd60c0159c5.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/46d9375134acdfa1cbfbe7395f1d910d_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/320a845ba655ea9881ac02d31f7da5b0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/725a0b78036e6b08f857375064baa084.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741535, "record_id": 44098, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1990" } ], "attached_images": [] }, { "id": 44096, "kind": 1, "names": [ "Кукуруза Александр" ], "year_of_birth": null, "public_comment": "Источник: [https://volunteer.su/content/kukuruza-aleksandr](https://volunteer.su/content/kukuruza-aleksandr)\n\nДень рождения: \n\nКартинка: https://volunteer.su:443/sites/default/files/person/2487a2dd226b88067021fc14b7d91959.jpg\n\n2487a2dd226b88067021fc14b7d91959.jpg\n\nГород Мариуполь\n\nВоеннослужащий\n\nУчастие в боевых действиях\n\npersons?page=1961\n\nhttps://volunteer.su:443/sites/default/files/person/9577dfca9ee6ecb164f3ee4c227c2842.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/dcf9d28c314e1490cf493540cf2c69f1.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/3e3abc7c4ac27f68552be55811319f62.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/c3d77093ace1a3fb6f4d0cc458e39fd8_0.jpg\n\nhttps://volunteer.su:443/sites/default/files/person/126206643eb92cb8dee5459087273ceb.jpg", "last_modified": "2024-04-28", "tags": [], "attributes": [ { "id": 694741537, "record_id": 44096, "attribute_kind_id": 2, "attribute_kind_slug": "year-of-birth", "value": "1961" } ], "attached_images": [] } ] }
WarTears.org