Differences

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

Link to this comparison view

api:api_applications_id_studyplans_id [2015/02/13 16:06]
Lauri Elevant [Response example]
api:api_applications_id_studyplans_id [2021/01/21 12:51]
Line 1: Line 1:
-====== /api/applications/ID/studyplans/ID ====== 
  
-===== HEAD, GET ===== 
- 
-A study plan is always created in a particular application and are related to a particular course (you can see the identifiers in the example data below). 
- 
-The statuses can currently be: 
-  * Blank 
-  * Prepare 
-  * Completed 
-  * Accepted 
-  * Closed 
-==== Syntax ==== 
- 
-  GET /api/applications/123/studyplans/1 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Response headers ==== 
- 
-  Content-Type: application/json 
-  Content-Length: 1234 
-   
-==== Response example ==== 
- 
-  { 
-    "subjects": [ 
-        { 
-            "code": "ASTR", 
-            "name": "Astronomy", 
-            "academic-term": "/api/academic-terms/1", 
-            "credits": "5" 
-        }, 
-        { 
-            "code": "BOT", 
-            "name": "Botany", 
-            "academic-term": "/api/academic-terms/1", 
-            "credits": "2" 
-        }, 
-        { 
-            "code": "CAL", 
-            "name": "Calligraphy", 
-            "academic-term": "/api/academic-terms/1", 
-            "credits": "3" 
-        } 
-    ], 
-    "created": "2015-02-13T15:55:46+00:00", 
-    "revised": "2015-02-13T15:56:10+00:00", 
-    "course": "/api/courses/321", 
-    "application": "/api/applications/123", 
-    "status": "Prepare" 
-  }