Download

Description

GET /noark5/v1/download?id={documentID}

The GET /noark5/v1/download or as referred to in the documentation download operation is the way to retrieve already uploaded electronic documents from Documaster Archive.

Request

The request for the operation is the electronic document payload. Uploading the document requires it’s name to be provided in the Content-Disposition header as shown below.

HTTP Request
Field Location Mandatory Type Description
Authorization string access token aquired as part of the authentication call, prefixed with Bearer
id bytes identifier of the electronic document in Documaster Archive, returned as a resulf ot the upload operation

      Request

GET https://v2-34-0.local.documaster.tech:8083/rms/api/public/noark5/v1/download?id=9958 HTTP/1.1
Authorization: Bearer {{accessTokenIntegrator}}
// new Noark5Client should have been initialized and the integration should hold a valid access token
// file content would be available in the precreated fileOutputStream (of type OutputStream)
// the API supports also providing a file path where the document can be saved

client.download(dokumentfil, fileOuputStream);
// new NoarkClient should have been initialized and the integration should hold a valid access token
// file content would be available in the fileOutpuStream (of type Stream) after successful execution
// the API supports also providing a file path where the document can be saved

client.Download(dokumentfil, fileOuputStream);

Response

Response of the operation is the byte stream of the file content.