Differences

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

Link to this comparison view

api:api_applicants_id_consents_id [2017/11/21 14:58]
Safak Samiloglu created
api:api_applicants_id_consents_id [2021/01/21 12:51]
Line 1: Line 1:
-====== /api/applicants/ID/consents/ID ====== 
  
-===== HEAD, GET ===== 
- 
-Use the ''HEAD'' verb to test if the applicant in question is associated with this consent. A request with the ''GET'' verb returns some additional information about the consent association. 
- 
-**Note that this will not return the consent itself**, but rather represents the relationships between the applicant and the consent. Follow the consent URI in the response to retrieve further information about the consent in question. 
- 
-==== Syntax ==== 
- 
-  GET /api/applicants/123/consents/1 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: application/json 
-  Content-Length: 1234 
- 
-==== Response codes ==== 
- 
-| ''200 OK'' | The tracker is set | 
-| ''400 Bad Request'' | The consent ID was not valid | 
-| ''404 Not Found'' | Applicant have not acted on this consent | 
-| ''404 Not Found'' | The consent was not found | 
- 
-==== Response example ==== 
- 
-  { 
-    "decided": "2014-06-29T18:11:15+00:00", 
-    "decision": "Accept" 
-    "consent": "/api/applicants/consents/1" 
-  }