Hackathon2019

<back to all web services

MetadataRequest

Requires Authentication
The following routes are available for this service:
GET/api/metadata/{TopDestination}Retrieve metadata for the document
MetadataRequest Parameters:
NameParameterData TypeRequiredDescription
TopDestinationpathstringNoThe document id
MetadataResponse Parameters:
NameParameterData TypeRequiredDescription
AbbreviationsformList<string>No
AliasesformList<string>No
StatusformstringNo
LastUpdatedformDateTimeNo
SourceIdformstringNo
SourceNameformstringNo
TitleformstringNo
ShortTitleformstringNo
TitleIdformstringNo
EffectiveFromformstringNo
DepartementformstringNo
AnnouncedDateformDateTime?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /api/metadata/{TopDestination} HTTP/1.1 
Host: hackathon2019.rettsdata.no 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MetadataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bff.Dto.Toc">
  <Abbreviations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Abbreviations>
  <Aliases xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Aliases>
  <AnnouncedDate>0001-01-01T00:00:00</AnnouncedDate>
  <Departement>String</Departement>
  <EffectiveFrom>String</EffectiveFrom>
  <LastUpdated>0001-01-01T00:00:00</LastUpdated>
  <ShortTitle>String</ShortTitle>
  <SourceId>String</SourceId>
  <SourceName>String</SourceName>
  <Status>String</Status>
  <Title>String</Title>
  <TitleId>String</TitleId>
</MetadataResponse>