Machines detail uri:
Code Block |
---|
/api/v2/third_party/machines/{id} |
Method:
Code Block |
---|
GET |
Header:
Code Block |
---|
'X-SIMA-APIKEY: {API-KEY}',
'X-SIMA-SYSTEM-ID: 8',
'Accept: application/json',
'Content-Type: application/json' |
Parameters:
Code Block |
---|
id: (int) |
Response example:
Code Block |
---|
{
"id": 12661,
"brand": "AD259KZ AMAROK DC 2.02L TDI 180CV CONFORLINE 4X2",
"model": null,
"year": null,
"beak_distance": null,
"tank": null,
"driver": null,
"applicator_id": 79376,
"application_method_id": 4,
"platform_width": null,
"has_pilot": null,
"has_harvest_map": null,
"machine_type_id": 5,
"machine_threshing_system_id": null,
"machine_head_id": null,
"date_modified": "2022-07-07T15:32:25-03:00",
"date_created": "2022-04-08T15:35:48-03:00"
} |
Machines list uri:
Code Block |
---|
/api/v2/third_party/machines |
Method:
Code Block |
---|
GET |
Header:
Code Block |
---|
'X-SIMA-APIKEY: {{API-KEY}}',
'X-SIMA-SYSTEM-ID: 8',
'Accept: application/json',
'Content-Type: application/json' |
Parameters:
Code Block |
---|
page: (int) default value 1
size: (int) default value 10
find: (string) optional
id: (int) optional
updated_from: (datetime) optional
created_from: (datetime) optional |
Response example:
Code Block |
---|
{
"items": [
{
"id": 234,
"brand": "Pla",
"model": null,
"year": null,
"beak_distance": "35.000000",
"tank": null,
"driver": "Riba Nestor",
"applicator_id": 3,
"application_method_id": 2,
"platform_width": null,
"has_pilot": null,
"has_harvest_map": null,
"machine_type_id": 1,
"machine_threshing_system_id": null,
"machine_head_id": null,
"date_modified": "2016-11-09T10:48:24-03:00",
"date_created": "2016-11-09T10:48:24-03:00"
} ],
"current_page": 1,
"next_page": 1,
"total_pages": 1,
"total_items": 1
} |