Nematool API

Documented Nematool API for integration with other applications
More information: https://nematool.com/API
Contact Info: hello@nematool.com/API
Version: 1.0.0
BasePath:/Nematool/1.0.0
All rights reserved
https://nematool.com/Nematool-UserLicenseAgreement.pdf

Access

  1. HTTP Basic Authentication

Methods

[ Jump to Models ]

Table of Contents

Authentication

Crops

Default

Fcmtoken

Fields

Guests

Notifications

PredictionModels

Sensors

Sigpac

Solarization

User

Authentication

Up
post /request_restore_code/
Petición para recuperar contraseña (forgotPassword)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ForgotPassword (optional)
Body Parameter

Return type

ForgotPassword

Example data

Content-Type: application/json
{
  "email" : "email"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Petición exitosa ForgotPassword

Up
post /auth/oauth/token/#1
Login - Obtiene un token de acceso para el resto de llamadas (login)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body LoginRequest (optional)
Body Parameter — Datos de acceso

Return type

LoginResponse

Example data

Content-Type: application/json
{
  "access_token" : "access_token",
  "refresh_token" : "refresh_token",
  "scope" : "scope",
  "token_type" : "token_type",
  "expires_in" : 0.8008281904610115
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Acceso exitoso LoginResponse

Up
post /auth/oauth/token/#2
Refresca el token de acceso (oauthtoken)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body RefreshTokenRequest (optional)
Body Parameter — Datos de acceso

Return type

LoginResponse

Example data

Content-Type: application/json
{
  "access_token" : "access_token",
  "refresh_token" : "refresh_token",
  "scope" : "scope",
  "token_type" : "token_type",
  "expires_in" : 0.8008281904610115
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Acceso exitoso LoginResponse

Crops

Up
get /crops/
Obtiene listado de cultivos (getCrops)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter

Return type

CropPaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de cultivos CropPaged

Default

Up
get /check-country/
Comprueba el pais (checkCountry)

Return type

Country

Example data

Content-Type: application/json
{
  "country_code" : "country_code"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Pais Country

Fcmtoken

Up
post /devices/gcm/
Petición para dar de alta el token FCM (createFCMToken)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body CreateFCMTokenRQ (optional)
Body Parameter

Responses

200

Petición exitosa

Up
patch /devices/gcm/{id}/unlink/
Petición para desvincular token FCM (unlinkFCMProfile)

Path parameters

id (required)
Path Parameter

Responses

200

Operacion exitosa

Up
patch /devices/gcm/{id}/profile/
Petición para actualziar el token FCM (updateFCMProfile)

Path parameters

id (required)
Path Parameter

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body UpdateDeviceProfileRQ (optional)
Body Parameter

Responses

200

Operacion exitosa

Fields

Up
post /fields/
Crea una nueva parcela (createField)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body NewFieldRQ (optional)
Body Parameter

Return type

FieldRS

Example data

Content-Type: application/json
{
  "area" : {
    "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
    "type" : "type"
  },
  "owner" : {
    "phone" : "phone",
    "last_name" : "last_name",
    "groups" : [ "groups", "groups" ],
    "id" : 0.8008281904610115,
    "date_joined" : "2000-01-23",
    "first_name" : "first_name",
    "email" : "email"
  },
  "city" : 5.962133916683182,
  "created" : "2000-01-23",
  "keys" : [ {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  }, {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  } ],
  "active_solarization" : {
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 9.369310271410669,
    "degrees" : 6.683562403749608
  },
  "prediction_models" : [ {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  }, {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  } ],
  "aggregation" : 5.637376656633329,
  "sensors" : [ {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  }, {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  } ],
  "province" : 1.4658129805029452,
  "polygon" : 7.061401241503109,
  "zone" : 2.3021358869347655,
  "plot" : 9.301444243932576,
  "enclosure" : 3.616076749251911,
  "name" : "name",
  "id" : 0.8008281904610115,
  "crop" : 6.027456183070403
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Peticion exitosa FieldRS

Up
delete /fields/{field_id}/
(deleteField)

Path parameters

field_id (required)
Path Parameter

Responses

200

Operacion exitosa

Up
get /fields/{field_id}/
(getField)

Path parameters

field_id (required)
Path Parameter

Return type

FieldRS

Example data

Content-Type: application/json
{
  "area" : {
    "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
    "type" : "type"
  },
  "owner" : {
    "phone" : "phone",
    "last_name" : "last_name",
    "groups" : [ "groups", "groups" ],
    "id" : 0.8008281904610115,
    "date_joined" : "2000-01-23",
    "first_name" : "first_name",
    "email" : "email"
  },
  "city" : 5.962133916683182,
  "created" : "2000-01-23",
  "keys" : [ {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  }, {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  } ],
  "active_solarization" : {
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 9.369310271410669,
    "degrees" : 6.683562403749608
  },
  "prediction_models" : [ {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  }, {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  } ],
  "aggregation" : 5.637376656633329,
  "sensors" : [ {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  }, {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  } ],
  "province" : 1.4658129805029452,
  "polygon" : 7.061401241503109,
  "zone" : 2.3021358869347655,
  "plot" : 9.301444243932576,
  "enclosure" : 3.616076749251911,
  "name" : "name",
  "id" : 0.8008281904610115,
  "crop" : 6.027456183070403
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Info de parcela FieldRS

Up
get /fields/
(getFields)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter

Return type

FieldPaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Lista de parcelas FieldPaged

Up
put /fields/
(updateField)

Query parameters

token (required)
Query Parameter — Usuario de la parcela
field_id (required)
Query Parameter — Id de la parcela

Return type

FieldRS

Example data

Content-Type: application/json
{
  "area" : {
    "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
    "type" : "type"
  },
  "owner" : {
    "phone" : "phone",
    "last_name" : "last_name",
    "groups" : [ "groups", "groups" ],
    "id" : 0.8008281904610115,
    "date_joined" : "2000-01-23",
    "first_name" : "first_name",
    "email" : "email"
  },
  "city" : 5.962133916683182,
  "created" : "2000-01-23",
  "keys" : [ {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  }, {
    "kind" : 9.965781217890562,
    "term" : "term",
    "id" : "id",
    "label" : "label"
  } ],
  "active_solarization" : {
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 9.369310271410669,
    "degrees" : 6.683562403749608
  },
  "prediction_models" : [ {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  }, {
    "thresholds" : [ null, null ],
    "field" : 4.145608029883936,
    "last_log_entry" : {
      "date" : "2000-01-23",
      "generation" : 1.2315135367772556,
      "eggs" : 1.0246457001441578,
      "threshold" : {
        "lower" : 1.1730742509559433,
        "upper" : 4.965218492984954,
        "is_risky" : true,
        "risk" : 5.025004791520295,
        "id" : 7.457744773683766,
        "label" : "label"
      },
      "id" : 7.386281948385884,
      "ratio_complete_cycle" : 1.4894159098541704,
      "ratio_eggs" : 6.84685269835264
    },
    "name" : "name",
    "started" : "2000-01-23",
    "finished" : "2000-01-23",
    "id" : 2.027123023002322
  } ],
  "aggregation" : 5.637376656633329,
  "sensors" : [ {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  }, {
    "current_rssi" : 5.962133916683182,
    "current_rssi_timestamp" : "2000-01-23",
    "tst_serial_number" : "tst_serial_number",
    "is_activated" : true,
    "serial" : "serial",
    "current_battery_timestamp" : "2000-01-23",
    "interpolation_period" : 5.637376656633329,
    "id" : 0.8008281904610115,
    "position" : {
      "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
      "type" : "type"
    },
    "current_battery" : 1.4658129805029452
  } ],
  "province" : 1.4658129805029452,
  "polygon" : 7.061401241503109,
  "zone" : 2.3021358869347655,
  "plot" : 9.301444243932576,
  "enclosure" : 3.616076749251911,
  "name" : "name",
  "id" : 0.8008281904610115,
  "crop" : 6.027456183070403
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Info de parcela FieldRS

Guests

Up
delete /guests/{guestId}/
Elimina a un invitado (deleteGuest)

Path parameters

guestId (required)
Path Parameter

Responses

200

Operación exitosa

Up
get /guests/
Obtiene listdo de invitados (getGuests)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter
field (required)
Query Parameter
user (required)
Query Parameter

Return type

GuestPaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de invitados GuestPaged

Up
post /guests/
Comparte parcela (shareFieldWith)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ShareFieldRQ (optional)
Body Parameter

Responses

200

Operación exitosa

Notifications

Up
get /notifications/
Obtiene el listado de alertas (getAlerts)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter

Return type

AlertPaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de alertas AlertPaged

Up
patch /notifications/{id}/
Marca como leida una determinada notificación (markAlertAsRead)

Path parameters

id (required)
Path Parameter

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body NotificationReadRQ (optional)
Body Parameter

Responses

200

Operación exitosa

PredictionModels

Up
post /nematool/prediction_models/
Inicia el modelo de predicción de una determinada parcela (startPredictionModel)

Consumes

This API call consumes the following media types via the Content-Type request header:

Form parameters

field (optional)
Form Parameter

Return type

PredictionModel

Example data

Content-Type: application/json
{
  "thresholds" : [ null, null ],
  "field" : 4.145608029883936,
  "last_log_entry" : {
    "date" : "2000-01-23",
    "generation" : 1.2315135367772556,
    "eggs" : 1.0246457001441578,
    "threshold" : {
      "lower" : 1.1730742509559433,
      "upper" : 4.965218492984954,
      "is_risky" : true,
      "risk" : 5.025004791520295,
      "id" : 7.457744773683766,
      "label" : "label"
    },
    "id" : 7.386281948385884,
    "ratio_complete_cycle" : 1.4894159098541704,
    "ratio_eggs" : 6.84685269835264
  },
  "name" : "name",
  "started" : "2000-01-23",
  "finished" : "2000-01-23",
  "id" : 2.027123023002322
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Operacion exitosa PredictionModel

Up
put /nematool/prediction_models/{predictionId}/stop/
Detiene el modelo de predicción (stopPredictionModel)

Path parameters

predictionId (required)
Path Parameter

Responses

200

Operacion exitosa

Sensors

Up
post /sensor_fields/
Asocia un sensor a una parcela (assignSensorToField)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SensorFieldAssociationRQ (optional)
Body Parameter

Responses

200

Operacion exitosa

Up
post /sensors/
Da de alta un sensor (createSensor)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SensorRQ (optional)
Body Parameter

Return type

Sensor

Example data

Content-Type: application/json
{
  "current_rssi" : 5.962133916683182,
  "current_rssi_timestamp" : "2000-01-23",
  "tst_serial_number" : "tst_serial_number",
  "is_activated" : true,
  "serial" : "serial",
  "current_battery_timestamp" : "2000-01-23",
  "interpolation_period" : 5.637376656633329,
  "id" : 0.8008281904610115,
  "position" : {
    "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
    "type" : "type"
  },
  "current_battery" : 1.4658129805029452
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Sensor dado de alta Sensor

Up
get /sensor_key_values/
Obtiene los valores de un determinado sensor (getLastSensorKeyValue)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter
ordering (optional)
Query Parameter — Criterio de ordenacion
field (required)
Query Parameter — Id de la parcela
key (required)
Query Parameter — Clave del valor a recueprar

Return type

SensorKeyValuePaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Valor de sensor SensorKeyValuePaged

Up
get /sensors/
Obtiene los sensores (getSensor)

Query parameters

page (optional)
Query Parameter
page_size (optional)
Query Parameter
serial (optional)
Query Parameter — Sensorid para filtrar los resultados

Return type

SensorPaged

Example data

Content-Type: application/json
""

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Sensores SensorPaged

Up
get /sensor_key_values/time_series/
Obtiene los valores de un sensor en una determinada serie temporal (getSensorValues)

Query parameters

field (required)
Query Parameter — Parcela
key (required)
Query Parameter — Clave del valor
interval (optional)
Query Parameter — Intervalo de la serie
timestamp_min (optional)
Query Parameter — Desde
timestamp_max (optional)
Query Parameter — Hasta

Return type

SensorValuesRS

Example data

Content-Type: application/json
{
  "entryList" : {
    "date" : "2000-01-23",
    "mean" : 0.8008281904610115
  }
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Valores del sensor SensorValuesRS

Up
patch /sensors/{id}/
Actualiza el sensor asociándolo a una localización (updateSensor)

Path parameters

id (required)
Path Parameter — Id del sensor

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body SensorUpdateRQ (optional)
Body Parameter

Return type

Sensor

Example data

Content-Type: application/json
{
  "current_rssi" : 5.962133916683182,
  "current_rssi_timestamp" : "2000-01-23",
  "tst_serial_number" : "tst_serial_number",
  "is_activated" : true,
  "serial" : "serial",
  "current_battery_timestamp" : "2000-01-23",
  "interpolation_period" : 5.637376656633329,
  "id" : 0.8008281904610115,
  "position" : {
    "coordinates" : [ 6.027456183070403, 6.027456183070403 ],
    "type" : "type"
  },
  "current_battery" : 1.4658129805029452
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Sensor actualizado Sensor

Sigpac

Up
get /sigpac/aggregations/
Obtiene el listado de agregados sigpac (getSigpacAggregations)

Query parameters

province (required)
Query Parameter
city (required)
Query Parameter

Return type

array[Aggregation]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de Agregados

Up
get /sigpac/cities/
Obtiene el listado de municipios sigpac (getSigpacCities)

Query parameters

province (required)
Query Parameter

Return type

array[City]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de municipios

Up
get /sigpac/communities/
Obtiene el listado de comunidades sigpac (getSigpacCommunities)

Return type

array[Community]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de comunidades

Up
get /sigpac/enclosures/
Obtiene el listado de recintos sigpac (getSigpacEnclosures)

Query parameters

province (required)
Query Parameter
city (required)
Query Parameter
aggregation (required)
Query Parameter
zone (required)
Query Parameter
polygon (required)
Query Parameter
plt (required)
Query Parameter

Return type

array[Enclosure]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de Recintos

Up
get /sigpac/plots/
Obtiene el listado de parcelas sigpac (getSigpacPlots)

Query parameters

province (required)
Query Parameter
city (required)
Query Parameter
aggregation (required)
Query Parameter
zone (required)
Query Parameter
polygon (required)
Query Parameter

Return type

array[Plot]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de Parcelas

Up
get /sigpac/polygons/
Obtiene el listado de polígonos sigpac (getSigpacPolygons)

Query parameters

province (required)
Query Parameter
city (required)
Query Parameter
aggregation (required)
Query Parameter
zone (required)
Query Parameter

Return type

array[Polygon]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de Polígonos

Up
get /sigpac/provinces/
Obtiene el listado de provincias sigpac (getSigpacProvinces)

Query parameters

community (required)
Query Parameter

Return type

array[Province]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de provincias

Up
get /sigpac/zones/
Obtiene el listado de zonas sigpac (getSigpacZones)

Query parameters

province (required)
Query Parameter
city (required)
Query Parameter
aggregation (required)
Query Parameter

Return type

array[Zone]

Example data

Content-Type: application/json
[ {
  "code" : 0.8008281904610115,
  "name" : "name"
}, {
  "code" : 0.8008281904610115,
  "name" : "name"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Listado de Zonas

Solarization

Up
post /nematool/solarizations/
Inicia la solarizacion de una determinada parcela (startSolarization)

Consumes

This API call consumes the following media types via the Content-Type request header:

Form parameters

field (optional)
Form Parameter

Return type

Solarization

Example data

Content-Type: application/json
{
  "started" : "2000-01-23",
  "finished" : "2000-01-23",
  "id" : 9.369310271410669,
  "degrees" : 6.683562403749608
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Operacion exitosa Solarization

Up
put /nematool/solarizations/{solarizationId}/stop/
Detiene el proceso de solarización (stopSolarization)

Path parameters

solarizationId (required)
Path Parameter

Responses

200

Operacion exitosa

User

Up
get /users/me/
Obtiene los datos del usuario (getUser)

Return type

UserRS

Example data

Content-Type: application/json
{
  "phone" : "phone",
  "last_name" : "last_name",
  "groups" : [ "groups", "groups" ],
  "id" : 0.8008281904610115,
  "date_joined" : "2000-01-23",
  "first_name" : "first_name",
  "email" : "email"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Datos de usuario UserRS

Up
post /users/
Registra al usuario en el sistem Nematool (register)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body RegisterRequest (optional)
Body Parameter — Datos de registro

Return type

RegisterRS

Example data

Content-Type: application/json
{
  "phone" : "phone",
  "last_name" : "last_name",
  "groups" : [ "groups", "groups" ],
  "id" : 0.8008281904610115,
  "date_joined" : "date_joined",
  "first_name" : "first_name",
  "email" : "email"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

Registro exitoso RegisterRS

Models

[ Jump to Methods ]

Table of Contents

  1. Aggregation
  2. AlertPaged
  3. AlertRS
  4. AreaDTO
  5. City
  6. Community
  7. Country
  8. CreateFCMTokenRQ
  9. Crop
  10. CropPaged
  11. Enclosure
  12. Event
  13. FieldPaged
  14. FieldRS
  15. ForgotPassword
  16. GeoZone
  17. Guest
  18. GuestPaged
  19. Key
  20. LogEntry
  21. LoginRequest
  22. LoginResponse
  23. NewFieldRQ
  24. NotificationReadRQ
  25. PagedRS
  26. Plot
  27. Polygon
  28. PredictionModel
  29. Province
  30. RefreshTokenRequest
  31. RegisterRS
  32. RegisterRequest
  33. Sensor
  34. SensorCreateRQ
  35. SensorFieldAssociationRQ
  36. SensorKeyValuePaged
  37. SensorKeyValueRS
  38. SensorMinMax
  39. SensorPaged
  40. SensorRQ
  41. SensorUpdateRQ
  42. SensorValue
  43. SensorValuesRS
  44. ShareFieldRQ
  45. Solarization
  46. Target
  47. Threshold
  48. UpdateDeviceProfileRQ
  49. UserRS
  50. Zone
  51. nematool_prediction_models_body
  52. nematool_solarizations_body

Aggregation Up

code (optional)
name (optional)

AlertPaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

AlertRS Up

id (optional)
event (optional)
read (optional)

AreaDTO Up

type (optional)
coordinates (optional)

City Up

code (optional)
name (optional)

Community Up

code (optional)
name (optional)

Country Up

country_code (optional)

CreateFCMTokenRQ Up

registrtion_id (optional)
cloud_message_id (optional)
application_id

Crop Up

id (optional)
name (optional)

CropPaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

Enclosure Up

code (optional)
name (optional)

Event Up

created (optional)
date format: date
text (optional)
title (optional)
verb (optional)
title_loc_key (optional)
title_loc_args (optional)
body_loc_key (optional)
body_loc_args (optional)
target (optional)

FieldPaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

FieldRS Up

id (optional)
BigDecimal identificador de la parcela
name (optional)
String Nombre de la parcela
area (optional)
crop (optional)
province (optional)
city (optional)
aggregation (optional)
zone (optional)
polygon (optional)
plot (optional)
enclosure (optional)
center (optional)
created (optional)
date format: date
owner (optional)
prediction_models (optional)
sensors (optional)
keys (optional)
active_solarization (optional)
active_prediction_model (optional)

ForgotPassword Up

email

GeoZone Up

code (optional)
name (optional)

Guest Up

id (optional)
user (optional)

GuestPaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

Key Up

id (optional)
term (optional)
label (optional)
kind (optional)

LogEntry Up

id (optional)
date (optional)
date format: date
generation (optional)
eggs (optional)
ratio_complete_cycle (optional)
ratio_eggs (optional)
threshold (optional)

LoginRequest Up

username
password
grant_password (optional)

LoginResponse Up

access_token (optional)
expires_in (optional)
token_type (optional)
scope (optional)
refresh_token (optional)

NewFieldRQ Up

name (optional)
area (optional)
province (optional)
city (optional)
aggregation (optional)
zone (optional)
polygon (optional)
plot (optional)
enclosure (optional)
crop (optional)

NotificationReadRQ Up

read (optional)

PagedRS Up

count (optional)
next (optional)
previous (optional)

Plot Up

code (optional)
name (optional)

Polygon Up

code (optional)
name (optional)

PredictionModel Up

id (optional)
name (optional)
field (optional)
started (optional)
date format: date
finished (optional)
date format: date
last_log_entry (optional)
thresholds (optional)

Province Up

code (optional)
name (optional)

RefreshTokenRequest Up

refresh_token
grant_type

RegisterRS Up

id (optional)
email (optional)
first_name (optional)
last_name (optional)
phone (optional)
groups (optional)
date_joined (optional)

RegisterRequest Up

email
password

Sensor Up

id (optional)
position (optional)
serial (optional)
tst_serial_number (optional)
is_activated (optional)
current_battery (optional)
current_battery_timestamp (optional)
date format: date
current_rssi (optional)
current_rssi_timestamp (optional)
date format: date
interpolation_period (optional)

SensorCreateRQ Up

serial (optional)
String Identificador serial del sensor

SensorFieldAssociationRQ Up

field (optional)
sensor (optional)

SensorKeyValuePaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

SensorKeyValueRS Up

id (optional)
value (optional)
timestamp (optional)
date format: date

SensorMinMax Up

max (optional)
min (optional)

SensorPaged Up

count (optional)
next (optional)
previous (optional)
results (optional)

SensorRQ Up

serial (optional)

SensorUpdateRQ Up

field (optional)
BigDecimal identificador de la parcela
position (optional)
interpolation_period (optional)

SensorValue Up

date (optional)
date format: date
mean (optional)

SensorValuesRS Up

entryList (optional)

ShareFieldRQ Up

field (optional)
BigDecimal Identificador de la parcela
email (optional)

Solarization Up

id (optional)
started (optional)
date format: date
finished (optional)
date format: date
degrees (optional)

Target Up

id (optional)

Threshold Up

id (optional)
lower (optional)
upper (optional)
is_risky (optional)
label (optional)
risk (optional)

UpdateDeviceProfileRQ Up

version (optional)

UserRS Up

id (optional)
email (optional)
first_name (optional)
last_name (optional)
phone (optional)
groups (optional)
date_joined (optional)
date format: date

Zone Up

code (optional)
name (optional)

nematool_prediction_models_body Up

field (optional)
BigDecimal Id de la parcela

nematool_solarizations_body Up

field (optional)
BigDecimal Id de la parcela