EKOS Registros
Endpoints
- HML https://dngl1c3516.execute-api.us-east-1.amazonaws.com/hml/registry
- DEV https://l468rdxr56.execute-api.us-east-1.amazonaws.com/dev/registry
Atributos GraphQL
os atributos graphql são os atributos de uma entidade que podem ser retornados pela API.
1. Cultura
{
id_crop
id_business_unit
crop_number
crop_name
crop_enable
}
2. Safra
{
id_crop_year
id_business_unit
crop_year_number
crop_year_name
crop_year_enable
}
3. Período Produtivo
{
id_season
id_business_unit
id_crop_year
season_name
season_number
season_start_at
season_end_at
season_enable
}
4. Insumo
{
id_agricultural_input
id_business_unit
agricultural_input_number
agricultural_input_name
agricultural_input_class
agricultural_input_brand
agricultural_input_unit
agricultural_input_family
agricultural_input_group
agricultural_input_enable
}
5. Tecnologia de Semente
{
id_seed_technology
id_business_unit
seed_technology_name
seed_technology_number
seed_technology_enable
agricultural_input [
{
id_agricultural_input
agricultural_input_number
agricultural_input_name
agricultural_input_class
agricultural_input_brand
agricultural_input_unit
agricultural_input_family
agricultural_input_group
agricultural_input_enable
}
]
}
6. Certificação
{
id_certification
id_business_unit
certification_name
certification_number
certification_enable
certification_unit
input_certification [
{
input_certification_dose
agricultural_input {
id_agricultural_input
agricultural_input_number
agricultural_input_name
agricultural_input_class
agricultural_input_brand
agricultural_input_unit
agricultural_input_family
agricultural_input_group
agricultural_input_enable
}
}
]
}
7. Variedade
{
id_variety
id_business_unit
id_seed_technology
id_crop
variety_number
variety_name
variety_type
variety_brand
variety_enable
}
8. Plano de Safra
{
id_crop_year
id_business_unit
crop_year_number
crop_year_name
crop_year_enable
season [
{
id_season
season_number
season_name
season_start_at
season_end_at
season_enable
variety [
{
id_variety
id_seed_technology
id_crop
variety_number
variety_name
variety_type
variety_brand
field [
{
id_field
id_farm
field_name
field_color
field_validity
field_geom
certification [
{
id_certification
certification_number
certification_name
certification_restriction
}
]
}
]
}
]
}
]
}
9. Ordem de Serviço
{
id_service_order
id_business_unit
id_agricultural_operation
id_team
id_working_day
id_season
service_order_number
service_order_date
service_order_start_at
service_order_end_at
service_order_total_area
service_order_flow_stand_dose
service_order_total_volume
service_order_nozzle_type
service_order_prescription
service_order_enable
service_order_unit
agricultural_operation {
id_agricultural_operation
id_agricultural_activity
agricultural_operation_number
agricultural_operation_name
agricultural_operation_alert_rule
}
agricultural_activity {
id_agricultural_activity
agricultural_activity_number
agricultural_activity_name
agricultural_activity_enable
}
team {
id_team
team_number
team_name
team_unit
team_enable
}
season {
id_season
id_crop_year
season_name
season_number
season_start_at
season_end_at
season_enable
}
prescription [
{
prescription_amount
agricultural_input {
id_agricultural_input
agricultural_input_number
agricultural_input_name
agricultural_input_class
agricultural_input_brand
agricultural_input_unit
agricultural_input_family
agricultural_input_group
agricultural_input_enable
}
}
]
field [
{
id_field
id_farm
field_name
field_color
field_validity
field_geom
}
]
alert_rule [
{
id_alert_rule
id_service_order
alert_rule_start_at
alert_rule_end_at
alert_rule_user
alert_rule_description
alert_rule_rules [
{
alert
minValue
maxValue
variationValue
}
]
}
]
}
Observação: Evitar utilizar todos os atributos na query quando o retorno esperado for uma grande quantidade de dados.
Variáveis GraphQL
As variáveis graphql são os dados enviados a API e utilizados para fazer alterações ou retornar informações.
1. Cultura
{
id_crop: Int;
id_business_unit: Int;
crop_number: Int;
crop_name: String;
crop_enable: Boolean;
}
2. Safra
{
id_crop_year: Int;
id_business_unit: Int;
crop_year_number: Int;
crop_year_name: String;
crop_year_enable: Boolean;
}
3. Período Produtivo
{
id_season: Int;
id_business_unit: Int;
id_crop_year: Int;
season_name: String;
season_number: Int;
season_start_at: Long;
season_end_at: Long;
season_enable: Boolean;
}
4. Insumo
{
id_agricultural_input: Int;
id_business_unit: Int;
agricultural_input_number: Int;
agricultural_input_name: String;
agricultural_input_class: String;
agricultural_input_brand: String;
agricultural_input_unit: String;
agricultural_input_family: String;
agricultural_input_group: String;
agricultural_input_enable: Boolean;
}
Observação: Em "agricultural_input_unit" serão aceitos os enumeradores referentes a unidades de medida.
5. Tecnologia de Semente
{
id_seed_technology: Int;
id_business_unit: Int;
seed_technology_name: String;
seed_technology_number: Int;
seed_technology_enable: Boolean;
input_restrictions: [
{
id_agricultural_input: Int;
}
];
}
6. Certificação
{
id_certification: Int;
id_business_unit: Int;
certification_name: String;
certification_number: Int;
certification_enable: Boolean;
certification_unit: String;
input_certifications: [
{
id_agricultural_input: Int;
input_certification_dose: Float;
}
];
}
Observação: Em "certification_unit" serão aceitos os enumeradores referentes a unidades de medida por área.
7. Variedade
{
id_variety: Int;
id_business_unit: Int;
id_seed_technology: Int;
id_crop: Int;
variety_number: Int;
variety_name: String;
variety_type: String;
variety_brand: String;
variety_enable: Boolean;
}
8. Plano de Safra
{
"seasonFieldVariety": {
"id_season": Int;
"variety": [
{
"id_variety": Int;
"field": [
{
"id_field": Int;
"certification": [
{
"id_certification": Int;
}
]
}
]
}
]
}
}
9. Ordem de Serviço
{
"id_service_order": Int;
"id_business_unit": Int;
"id_agricultural_operation": Int;
"id_team": Int;
"id_working_day": Int;
"id_season": Int;
"service_order_number": Int;
"service_order_start_at": Long;
"service_order_end_at": Long;
"service_order_flow_stand_dose": Float;
"service_order_unit": String;
"service_order_total_volume": Float;
"service_order_nozzle_type": String
"service_order_prescription": String
"service_order_enable": Boolean;
"prescription": [
{
"id_agricultural_input": Int;
"prescription_amount": Float;
}
],
"field": [
{
"id_field": Int;
}
]
}
Observação: Em "service_order_unit" serão aceitos os enumeradores referentes a unidades de medida por área. ESPECIFICAMENTE os enumeradosres referentes a volume por hectare, massa por hectare e população por hectare.
Enumeradores
Faça o download da lista de enumeradores em formato JSON.