POST api/internal/download-usage

Register download usage for statistical purposes.

Request Information

URI Parameters

None.

Body Parameters

Geonorge.NedlastingApi.V3.DownloadUsageRequestType
NameDescriptionTypeAdditional information
group

string

None.

purpose

Collection of string

None.

softwareClient

string

None.

softwareClientVersion

string

None.

entries

Collection of Geonorge.NedlastingApi.V3.DownloadUsageEntryType

None.

_links

Collection of Geonorge.NedlastingApi.V3.LinkType

None.

Request Formats

application/json, text/json

Sample:
{
  "group": "sample string 1",
  "purpose": [
    "sample string 1",
    "sample string 2"
  ],
  "softwareClient": "sample string 2",
  "softwareClientVersion": "sample string 3",
  "entries": [
    {
      "metadataUuid": "sample string 1",
      "areaCode": "sample string 2",
      "areaName": "sample string 3",
      "format": "sample string 4",
      "projection": "sample string 5",
      "_links": [
        {
          "href": "sample string 1",
          "rel": "sample string 2",
          "templated": true,
          "templatedSpecified": true,
          "type": "sample string 5",
          "deprecation": "sample string 6",
          "name": "sample string 7",
          "title": "sample string 8"
        },
        {
          "href": "sample string 1",
          "rel": "sample string 2",
          "templated": true,
          "templatedSpecified": true,
          "type": "sample string 5",
          "deprecation": "sample string 6",
          "name": "sample string 7",
          "title": "sample string 8"
        }
      ]
    },
    {
      "metadataUuid": "sample string 1",
      "areaCode": "sample string 2",
      "areaName": "sample string 3",
      "format": "sample string 4",
      "projection": "sample string 5",
      "_links": [
        {
          "href": "sample string 1",
          "rel": "sample string 2",
          "templated": true,
          "templatedSpecified": true,
          "type": "sample string 5",
          "deprecation": "sample string 6",
          "name": "sample string 7",
          "title": "sample string 8"
        },
        {
          "href": "sample string 1",
          "rel": "sample string 2",
          "templated": true,
          "templatedSpecified": true,
          "type": "sample string 5",
          "deprecation": "sample string 6",
          "name": "sample string 7",
          "title": "sample string 8"
        }
      ]
    }
  ],
  "_links": [
    {
      "href": "sample string 1",
      "rel": "sample string 2",
      "templated": true,
      "templatedSpecified": true,
      "type": "sample string 5",
      "deprecation": "sample string 6",
      "name": "sample string 7",
      "title": "sample string 8"
    },
    {
      "href": "sample string 1",
      "rel": "sample string 2",
      "templated": true,
      "templatedSpecified": true,
      "type": "sample string 5",
      "deprecation": "sample string 6",
      "name": "sample string 7",
      "title": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<DownloadUsageRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://skjema.geonorge.no/SOSI/tjenestespesifikasjon/nedlastingapi/3.0">
  <group>sample string 1</group>
  <purpose>sample string 1</purpose>
  <purpose>sample string 2</purpose>
  <softwareClient>sample string 2</softwareClient>
  <softwareClientVersion>sample string 3</softwareClientVersion>
  <entries>
    <downloadusageentry>
      <metadataUuid>sample string 1</metadataUuid>
      <areaCode>sample string 2</areaCode>
      <areaName>sample string 3</areaName>
      <format>sample string 4</format>
      <projection>sample string 5</projection>
      <_links>
        <_links xmlns="http://www.kxml.no/rest/1.0">
          <href>sample string 1</href>
          <rel>sample string 2</rel>
          <templated>true</templated>
          <type>sample string 5</type>
          <deprecation>sample string 6</deprecation>
          <name>sample string 7</name>
          <title>sample string 8</title>
        </_links>
        <_links xmlns="http://www.kxml.no/rest/1.0">
          <href>sample string 1</href>
          <rel>sample string 2</rel>
          <templated>true</templated>
          <type>sample string 5</type>
          <deprecation>sample string 6</deprecation>
          <name>sample string 7</name>
          <title>sample string 8</title>
        </_links>
      </_links>
    </downloadusageentry>
    <downloadusageentry>
      <metadataUuid>sample string 1</metadataUuid>
      <areaCode>sample string 2</areaCode>
      <areaName>sample string 3</areaName>
      <format>sample string 4</format>
      <projection>sample string 5</projection>
      <_links>
        <_links xmlns="http://www.kxml.no/rest/1.0">
          <href>sample string 1</href>
          <rel>sample string 2</rel>
          <templated>true</templated>
          <type>sample string 5</type>
          <deprecation>sample string 6</deprecation>
          <name>sample string 7</name>
          <title>sample string 8</title>
        </_links>
        <_links xmlns="http://www.kxml.no/rest/1.0">
          <href>sample string 1</href>
          <rel>sample string 2</rel>
          <templated>true</templated>
          <type>sample string 5</type>
          <deprecation>sample string 6</deprecation>
          <name>sample string 7</name>
          <title>sample string 8</title>
        </_links>
      </_links>
    </downloadusageentry>
  </entries>
  <_links>
    <_links xmlns="http://www.kxml.no/rest/1.0">
      <href>sample string 1</href>
      <rel>sample string 2</rel>
      <templated>true</templated>
      <type>sample string 5</type>
      <deprecation>sample string 6</deprecation>
      <name>sample string 7</name>
      <title>sample string 8</title>
    </_links>
    <_links xmlns="http://www.kxml.no/rest/1.0">
      <href>sample string 1</href>
      <rel>sample string 2</rel>
      <templated>true</templated>
      <type>sample string 5</type>
      <deprecation>sample string 6</deprecation>
      <name>sample string 7</name>
      <title>sample string 8</title>
    </_links>
  </_links>
</DownloadUsageRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'DownloadUsageRequestType'.

Response Information

Resource Description

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.