POST api/v2/can-download

If polygon is selected, checks if coordinates is within the maximum allowable area that can be downloaded

Request Information

URI Parameters

None.

Body Parameters

Geonorge.NedlastingApi.V2.CanDownloadRequestType
NameDescriptionTypeAdditional information
metadataUuid

string

None.

coordinates

string

None.

coordinateSystem

string

None.

_links

Collection of Geonorge.NedlastingApi.V2.LinkType

None.

Request Formats

application/json, text/json

Sample:
{
  "metadataUuid": "sample string 1",
  "coordinates": "sample string 2",
  "coordinateSystem": "sample string 3",
  "_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:
<CanDownloadRequest 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/2.0">
  <metadataUuid>sample string 1</metadataUuid>
  <coordinates>sample string 2</coordinates>
  <coordinateSystem>sample string 3</coordinateSystem>
  <_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>
</CanDownloadRequest>

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 'CanDownloadRequestType'.

Response Information

Resource Description

Geonorge.NedlastingApi.V2.CanDownloadResponseType
NameDescriptionTypeAdditional information
canDownload

boolean

None.

message

string

None.

_links

Collection of Geonorge.NedlastingApi.V2.LinkType

None.

Response Formats

application/json, text/json

Sample:
{
  "canDownload": true,
  "message": "sample string 2",
  "_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:
<CanDownloadResponse 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/2.0">
  <canDownload>true</canDownload>
  <message>sample string 2</message>
  <_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>
</CanDownloadResponse>