POST api/MoljacVinoveLozePrediction

Servis koji racuna razvoj grožđanog moljca na vinovoj lozi

Request Information

URI Parameters

None.

Body Parameters

Stanica i datum za koji se računa razvoj grožđanog moljca

InsectPredictionModel
NameDescriptionTypeAdditional information
DeviceId

integer

Required

Datum

Datum za koji se racuna predikcija pojave moljca

date

Required

InAdvance

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": 1,
  "Datum": "2026-10-30T14:39:44.94108+00:00",
  "InAdvance": true
}

text/html

Sample:
{"DeviceId":1,"Datum":"2026-10-30T14:39:44.94108+00:00","InAdvance":true}

application/xml, text/xml

Sample:
<InsectPredictionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <Datum>2026-10-30T14:39:44.94108+00:00</Datum>
  <DeviceId>1</DeviceId>
  <InAdvance>true</InAdvance>
</InsectPredictionModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InsectPredictionModel'.

Response Information

Resource Description

Statusni kod

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.