Appearance
GET getPlots
Опис
Отримання переліку земельних ділянок і їх посівів для карточки в адмін частині.
example
/api/get-plots/:idПараметри
scheme-api
/api/get-plots/[id]?limit=[limit]&page=[page]&search=[search]| Назва | Тип | Опис |
|---|---|---|
| id | String | Ідентифікатор організації |
Відповідь
scheme-api
/api/get-plots/3669244433938777593?limit=2&page=1Приклад відповіді
json
{
"total": 4,
"filtered": 4,
"rows": [
{
"org_plot_rel_id": "3669244772922426906",
"org_id": "3669244433938777593",
"cad_num": "3224684800:03:010:001",
"cdate": "2025-07-04 14:21:24.289177",
"uid": "2185647745228866670",
"editor_id": "2185647745228866670",
"editor_date": "2025-07-04 14:21:24.289177",
"plots": null
},
{
"org_plot_rel_id": "3669244716878136850",
"org_id": "3669244433938777593",
"cad_num": "3224685300:04:014:0001",
"cdate": "2025-07-04 14:21:17.608105",
"uid": "2185647745228866670",
"editor_id": "2185647745228866670",
"editor_date": "2025-07-04 14:21:17.608105",
"plots": [
{
"year": 2021,
"dominant_crop": "Пшениця",
"other_crops": [
{
"class": "Ячмінь",
"intersect_area": "87.4290633715606651",
"intersection_percent": "31.10"
},
{
"class": "Цукровий буряк",
"intersect_area": "64.3166086163694",
"intersection_percent": "22.89"
}
],
"coverage_percentage": 34.31,
"coverage_area": 96.41,
"crop_rotation": true
},
{
"year": 2022,
"dominant_crop": "Кукурудза",
"other_crops": [
{
"class": "Ячмінь",
"intersect_area": "72.4140131990118",
"intersection_percent": "25.77"
},
{
"class": "Луки",
"intersect_area": "23.53634955954988444",
"intersection_percent": "8.37"
}
],
"coverage_percentage": 55.8,
"coverage_area": 156.84,
"crop_rotation": true
},
{
"year": 2023,
"dominant_crop": "Кукурудза",
"other_crops": [],
"coverage_percentage": 57.79,
"coverage_area": 162.38,
"crop_rotation": true
},
{
"year": 2024,
"dominant_crop": "Пшениця",
"other_crops": [],
"coverage_percentage": 40.32,
"coverage_area": 113.32,
"crop_rotation": true
}
]
}
]
}Статус коди
| Ключ | Опис |
|---|---|
| 200 Success | Успішний запит |
| 400 Bad Request | Неправильно сформований запит від клієнта |
| 500 Internal Server Error | Помилка на стороні сервера |
