GET api/agronetmobile/fieldsdetail?fieldId={fieldId}&lngCode={lngCode}

List of fields with coordinates

Request Information

URI Parameters

NameDescriptionTypeAdditional information
fieldId

id of selectd field

integer

Required

lngCode

language code en,sr,hu

string

Required

Body Parameters

None.

Response Information

Resource Description

FielDetail
NameDescriptionTypeAdditional information
Name

string

None.

ItemDetail

Collection of ItemDetail

None.

DevicesDetail

Collection of DevicesDetail

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "ItemDetail": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2",
      "BoxColor": "sample string 3"
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2",
      "BoxColor": "sample string 3"
    }
  ],
  "DevicesDetail": [
    {
      "Name": "sample string 1",
      "ItemDetail": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "BoxColor": "sample string 3"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "BoxColor": "sample string 3"
        }
      ]
    },
    {
      "Name": "sample string 1",
      "ItemDetail": [
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "BoxColor": "sample string 3"
        },
        {
          "Key": "sample string 1",
          "Value": "sample string 2",
          "BoxColor": "sample string 3"
        }
      ]
    }
  ]
}

text/html

Sample:
{"Name":"sample string 1","ItemDetail":[{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"},{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"}],"DevicesDetail":[{"Name":"sample string 1","ItemDetail":[{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"},{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"}]},{"Name":"sample string 1","ItemDetail":[{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"},{"Key":"sample string 1","Value":"sample string 2","BoxColor":"sample string 3"}]}]}

application/xml, text/xml

Sample:
<FielDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EkoNET.WebAPI.Models">
  <DevicesDetail>
    <DevicesDetail>
      <ItemDetail>
        <ItemDetail>
          <BoxColor>sample string 3</BoxColor>
          <Key>sample string 1</Key>
          <Value>sample string 2</Value>
        </ItemDetail>
        <ItemDetail>
          <BoxColor>sample string 3</BoxColor>
          <Key>sample string 1</Key>
          <Value>sample string 2</Value>
        </ItemDetail>
      </ItemDetail>
      <Name>sample string 1</Name>
    </DevicesDetail>
    <DevicesDetail>
      <ItemDetail>
        <ItemDetail>
          <BoxColor>sample string 3</BoxColor>
          <Key>sample string 1</Key>
          <Value>sample string 2</Value>
        </ItemDetail>
        <ItemDetail>
          <BoxColor>sample string 3</BoxColor>
          <Key>sample string 1</Key>
          <Value>sample string 2</Value>
        </ItemDetail>
      </ItemDetail>
      <Name>sample string 1</Name>
    </DevicesDetail>
  </DevicesDetail>
  <ItemDetail>
    <ItemDetail>
      <BoxColor>sample string 3</BoxColor>
      <Key>sample string 1</Key>
      <Value>sample string 2</Value>
    </ItemDetail>
    <ItemDetail>
      <BoxColor>sample string 3</BoxColor>
      <Key>sample string 1</Key>
      <Value>sample string 2</Value>
    </ItemDetail>
  </ItemDetail>
  <Name>sample string 1</Name>
</FielDetail>