Formulated detail uri:
Code Block |
---|
/api/v2/third_party/active_ingredients/{id} |
Method:
Code Block |
---|
GET |
Header:
Code Block |
---|
'X-SIMA-APIKEY: {API-KEY}',
'X-SIMA-SYSTEM-ID: {API-SYSTEM-ID}',
'Accept: application/json',
'Content-Type: application/json'
|
Parameters:
Code Block |
---|
id: (int) |
Response example:
Code Block |
---|
{
"id": 1,
"name": "Amitraz",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
} |
Formulated list uri:
Code Block |
---|
/api/v2/third_party/active_ingredients |
Method:
Code Block |
---|
GET |
Header:
Code Block |
---|
'X-SIMA-APIKEY: {API-KEY}',
'X-SIMA-SYSTEM-ID: {API-SYSTEM-ID}',
'Accept: application/json',
'Content-Type: application/json'
|
Parameters:
Code Block |
---|
page: (int) default value 1
size: (int) default value 10
country_id: (int)
use_id: (int)
cultivation_id (int)
find: (string)
updated_from: (datetime) optional
updated_to: (datetime) optional |
Response example:
Code Block |
---|
{
"items": [
{
"id": 1,
"name": "Amitraz",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 2,
"name": "Dicofol + tetradifon",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 3,
"name": "Hexitiazox",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 4,
"name": "Clofentezine",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 5,
"name": "Propargite",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 6,
"name": "Formetanato",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 7,
"name": "Piridaben",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 8,
"name": "Cyhexatin",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 9,
"name": "Flufenoxuron",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
},
{
"id": 10,
"name": "Fenpiroximato",
"modified_at": {
"date": "2015-11-01 00:00:00.000000",
"timezone_type": 3,
"timezone": "America/Argentina/Buenos_Aires"
}
}
],
"current_page": 1,
"next_page": 2,
"total_pages": 202,
"total_items": 2017
} |