Differences

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

Link to this comparison view

api:api_applications [2016/06/01 14:59]
Lauri Elevant [Parameters]
api:api_applications [2021/01/21 12:51]
Line 1: Line 1:
-====== /api/applications ====== 
  
-===== HEAD, GET ===== 
- 
-Retrieve a list of applications that match the set filtering criterion. As per norm, the ''HEAD'' verb is useful to just test if such an application exist (and how many).  
- 
-==== Syntax ==== 
- 
-  GET /api/applications 
-  Host: apply.example.edu 
-  Authorization: DREAM apikey="..." 
- 
-==== Parameters ==== 
- 
-^ Name ^  ^ Description ^ Notes ^ 
-| ''byAcademicTermID'' | **Required** | The [[api:api_academic-terms|academic term]] to filter by.  | | 
-| ''byAcademicYear'' | **Required** | The [[api:api_academic-years|academic year]] to filter by. | | 
-| ''byCommenceYear'' | <del>Deprecated</del> | Year number, for example "2015". Please use academic year or term now. | | 
-| ''byApplicantIDs'' | Optional | List of [[api:api_applicants|applicant IDs]]. An application will match if it belongs to one of the listed applicants. | [1] | 
-| ''byStatuses'' | Optional | List of [[api:api_applications_statuses|application statuses]]. | [1] | 
-| ''byCreatedSince'' | Optional | ISO 8601 datetime. Only show applications created after this. | | 
-| ''byRevisedSince'' | Optional | ISO 8601 datetime. Only show applications revised after this. | | 
-| ''bySubmittedSince'' | Optional | ISO 8601 datetime. Only show applications submitted after this. | | 
-| ''byCourseIDs'' | Optional | List of [[api:api_courses|course IDs]]. An application will match if it contains at least one of the listed courses. | [1] | 
-| ''byCourseTypes'' | Optional | List of [[api:api_classificators|course types]]. An application will match if it contains at least one course of the listed types. | [1] | 
-| ''byCourseInstitutionIDs'' | Optional | List of [[api:api_institutions|institution IDs]]. An application will match if it contains at least one course from the listed institutions. | [1] | 
-| ''byCourseIntakeIDs'' | Optional | List of [[api:api_intakes|intake IDs]]. An application will match if it contains at least one course under the listed intakes. | [1] | 
-| ''byOfferTypes'' | Optional | List of [[api:api_applications_offers_types|offer types]]. An application will match if it contains at least one offer of the listed types. | [1] [2] | 
-| ''byOfferDecisions'' | Optional | List of [[api:api_classificators|offer decisions]]. | [1] [2] | 
-| ''byOfferInstitutionIDs'' | Optional | List of [[api:api_institutions|institution IDs]]. An application will match if it contains at least one offer from the listed institutions. | [1] | 
-| ''byFlagIDs'' | Optional | List of [[api:api_applications_flags|flag IDs]] | [1] [3] | 
- 
-  * // Note [1]: Lists can be either comma or space separated. All list items are combined with logical ''OR'' operators - in other words an application is considered matching if it matches to any of the values in the list.// 
-  * // Note [2]: This limits selection to applications that have been submitted, since offers (initially in "Unreplied" status) will be created while submitting an application. An application may contain any number of courses, but they will be turned into offers only at submission. This also applies to edits made after submission. For example an applicant may add a course after submission, but the corresponding offer will appear only after submission. // 
-  * // Note [3]: Currently only one flag ID can be listed. This limitation will be lifted at a later date. // 
-==== Response headers ==== 
- 
-  Content-Type: application/json 
-  Content-Length: 1456 
-  X-Count: 15 
- 
- 
-==== Response example ==== 
- 
-  { 
-    "16": { 
-        "created": "2014-06-20T08:30:19+00:00", 
-        "revised": "2014-06-20T08:30:19+00:00", 
-        "submitted": null, 
-        "status": "Submitted", 
-        "academic_term": "/api/academic-terms/321", 
-        "applicant": "/api/applicants/16", 
-        "flags": "/api/applications/16/flags", 
-        "courses": "/api/applications/16/courses", 
-        "offers": "/api/applications/16/offers", 
-        "exports": "/api/applications/16/exports", 
-        "documents": "/api/applications/16/documents", 
-        "studyplans": "/api/applications/16/studyplans" 
-    } 
-  }