GET api/Lookup

Gets all lookuplists

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Long list

Collection of ContextKeyValue
NameDescriptionTypeAdditional information
Context

The context of the key value list.

string

None.

Key

The id/key.

string

None.

Value

A single value for the key

string

None.

ValueList

A list of multiple subkey-values for the key

Collection of KeyValue

None.

Response Formats

text/javascript

Sample:
([{"Context":"GeoPrecision","Key":"1","Value":"bedre enn 10m","ValueList":null},{"Context":"GeoPrecision","Key":"2","Value":"bedre enn 100m","ValueList":null},{"Context":"Status","Key":"Fremmede arter","Value":null,"ValueList":[{"Key":"fa2012","Value":"Fremmede arter 2012 (HI,LO,PH,SE)"},{"Key":"fa2012_hi","Value":"Høy risiko / HI (Fremmede arter 2012)"},{"Key":"fa2012_lo","Value":"Lav risiko / LO (Fremmede arter 2012)"},{"Key":"fa2012_ph","Value":"Potensielt høy risiko / PH (Fremmede arter 2012)"},{"Key":"fa2012_se","Value":"Svært høy risiko / SE (Fremmede arter 2012)"}]}]);

application/json, text/json

Sample:
[
  {
    "Context": "GeoPrecision",
    "Key": "1",
    "Value": "bedre enn 10m",
    "ValueList": null
  },
  {
    "Context": "GeoPrecision",
    "Key": "2",
    "Value": "bedre enn 100m",
    "ValueList": null
  },
  {
    "Context": "Status",
    "Key": "Fremmede arter",
    "Value": null,
    "ValueList": [
      {
        "Key": "fa2012",
        "Value": "Fremmede arter 2012 (HI,LO,PH,SE)"
      },
      {
        "Key": "fa2012_hi",
        "Value": "Høy risiko / HI (Fremmede arter 2012)"
      },
      {
        "Key": "fa2012_lo",
        "Value": "Lav risiko / LO (Fremmede arter 2012)"
      },
      {
        "Key": "fa2012_ph",
        "Value": "Potensielt høy risiko / PH (Fremmede arter 2012)"
      },
      {
        "Key": "fa2012_se",
        "Value": "Svært høy risiko / SE (Fremmede arter 2012)"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfContextKeyValue xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Artskart.UI.Classes">
  <ContextKeyValue>
    <Context>GeoPrecision</Context>
    <Key>1</Key>
    <Value>bedre enn 10m</Value>
    <ValueList i:nil="true" />
  </ContextKeyValue>
  <ContextKeyValue>
    <Context>GeoPrecision</Context>
    <Key>2</Key>
    <Value>bedre enn 100m</Value>
    <ValueList i:nil="true" />
  </ContextKeyValue>
  <ContextKeyValue>
    <Context>Status</Context>
    <Key>Fremmede arter</Key>
    <Value i:nil="true" />
    <ValueList>
      <ContextKeyValue.KeyValue>
        <Key>fa2012</Key>
        <Value>Fremmede arter 2012 (HI,LO,PH,SE)</Value>
      </ContextKeyValue.KeyValue>
      <ContextKeyValue.KeyValue>
        <Key>fa2012_hi</Key>
        <Value>Høy risiko / HI (Fremmede arter 2012)</Value>
      </ContextKeyValue.KeyValue>
      <ContextKeyValue.KeyValue>
        <Key>fa2012_lo</Key>
        <Value>Lav risiko / LO (Fremmede arter 2012)</Value>
      </ContextKeyValue.KeyValue>
      <ContextKeyValue.KeyValue>
        <Key>fa2012_ph</Key>
        <Value>Potensielt høy risiko / PH (Fremmede arter 2012)</Value>
      </ContextKeyValue.KeyValue>
      <ContextKeyValue.KeyValue>
        <Key>fa2012_se</Key>
        <Value>Svært høy risiko / SE (Fremmede arter 2012)</Value>
      </ContextKeyValue.KeyValue>
    </ValueList>
  </ContextKeyValue>
</ArrayOfContextKeyValue>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Sample:
Will return an Excel worksheet fileresult. Generate by using accept header or add '?format=excel' to request url.