Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
api:api_applicants_123_documents_1 [2014/06/19 19:05] – created Lauri Elevantapi:api_applicants_123_documents_1 [2014/06/26 19:17] (current) – removed Lauri Elevant
Line 1: Line 1:
-====== /api/applicants/123/documents/1 ====== 
  
-===== HEAD, GET ===== 
- 
-Use the ''HEAD'' verb to just retrieve see the document metadata (name, size, mime-type). The ''GET'' verb will retrieve the document (binary) data. 
- 
-Please note that in Dream Apply a document stands for a single "page". If the source document was a multi-page PDF or TIFF, it was rasterized and split into several documents corresponding to the number of the pages. The rasterization will normally be carried out at 150 dpi.  
- 
-Even in case of single-page documents (JPEG files etc.) this will not return the original uplaoded file bit-by-bit. In the process of uplaoding, the file is [[http://en.wikipedia.org/wiki/Normalization_(image_processing)|normalized]] to enhance contrast. 
- 
-==== Syntax ==== 
- 
-  GET /api/applicants/123/documents/1 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: image/jpeg 
-  Content-Length: 1234 
-  Last-Modified: 2014-05-16T14:59:53+00:00