Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
api:api_applicants_123_documents [2014/06/19 18:54] Lauri Elevantapi:api_applicants_123_documents [2014/06/26 19:16] (current) – removed Lauri Elevant
Line 1: Line 1:
  
-====== /api/applicants/123/documents ====== 
- 
-===== HEAD, GET ===== 
- 
-Use to see if the applicant has uploaded any new documents. The ''HEAD'' verb is useful if you only want to test if this applicant has any documents at all (and how many). Use the ''GET'' verb to get the listing of documents. 
- 
-==== Syntax ==== 
- 
-  GET /api/applicants/123/documents 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: application/json 
-  Content-Length: 1234 
-  X-Count: 15 
- 
-==== Response example ==== 
- 
-  { 
-    "222": { 
-      "uploaded": "2014-04-29T15:46:38+00:00", 
-      "name": "Passport", 
-      "mime": "image/jpeg", 
-      "size": "1966954" 
-    }, 
-    "333": { 
-      "uploaded": "2014-04-29T15:46:38+00:00", 
-      "name": "Diploma", 
-      "mime": "image/jpeg", 
-      "size": "310178" 
-    } 
-  } 
-