
Enables the retrieval of survey information based upon the query parameters given. This is the survey definition and not survey data; to get survey data you must use the Report end-points.
The start and end date used for each survey is the first form start date and last form end date. In other words, it takes the max of the information and rater form end dates and the min of the information and rater form start dates. It is provided for convenience for the user (used in the IOL3 display).
Dates will be provided in ISO 8601 format. For example, 2012-02-13T01:34:52Z will be
used instead of February 2, 2012 1:34:52a UTC. This can be parsed in Java using the SimpleDateFormat and this pattern
"yyyy-MM-dd'T'HH:mm:ss'Z".
new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z").format(new Date());
The response will include some IDs for:
GET /institutions REST end-point.GET /forms REST end-point.GET /forms REST end-point.This REST end-point is used by the Report Management page in IOL3.
https://api.ideasystem.org/v1/surveys
/v1/surveys?page=1/v1/surveys?max=10/v1/surveys?has_reports=true/v1/surveys?institution=IDEA/v1/surveys?institution_id=12345GET /institutions REST end-point.
This will over-ride any definition of
institution name; in other words, don't use institution and institution_id together.
/v1/surveys?survey_group_id=1234/v1/surveys?src_survey_group_id=1234/v1/surveys?reports_generated_since=2012-09-06T00%3A00%3A00Z/v1/surveys?types=chair%2C16%2C17GET /forms REST end-point. This allows the client to see only the certain type of surveys.
/v1/surveys?valid=true/v1/surveys?sort=-created/v1/surveys?subject=smith/v1/surveys?program_code=01.01/v1/surveys?start_date=2015-10-16/v1/surveys?end_date=2015-10-21/v1/surveys?discipline_code=100/v1/surveys?discipline_id=1/v1/surveys?subject_email=j.smith%40ideaedu.org/v1/surveys?subject_sex=Female/v1/surveys?subject_appointment=Tenured/v1/surveys?subject_employment_status=Full+Time/v1/surveys?subject_role=Primary/v1/surveys?subject_src_id=ABC123/v1/surveys?course_src_id=2017-Q1-CS100/v1/surveys?course_subject=Intro+to+Comp+Sci/v1/surveys?course_number=CS100/v1/surveys?course_delivery_mode=Face+to+Face/v1/surveys?course_type=Graduate/v1/surveys?course_section_src_id=2017-Q1-CS100-A/v1/surveys?course_section_subject=Intro+to+Comp+Sci/v1/surveys?course_section_number=CS100-A/v1/surveys?course_section_delivery_mode=Face+to+FaceThe response will be an HTTP 200 along with a JSON body that contains the surveys that match the given query parameters. If an error occurs with the parameters that are passed in, an HTTP 400 will be returned along with an error message in a JSON body. All other errors will return an HTTP 500 (Internal Server Error).
"max": 50"page": 1"total_results": 143"data": { ... }"id": 1"group_id": 1"src_name": "IOL3""src_id": "1""src_group_id": "1""year": 2012"term": "Fall""includes_gap_analysis": true"demographic_group_ids": []/demographic_groups end-point.
Optional.
"end_date": "2012-09-06T00:00:00Z""start_date": "2012-09-06T00:00:00Z""creation_date": "2012-09-06T00:00:00Z""course": { ... }"title": "Intro to Biology""number": "101""local_code": "01 02 345"days": "MWF""time": "14:30""src_id": "01-23-456-789""subject": "BIO""type": "undergraduate""delivery_mode": "online""term_type": "semester""start_date": "2016-01-01""end_date": "2017-01-01""section": { ... }"title": "Intro to Biology""number": "101""src_id": "01-23-456-789""subject": "BIO""start_date": "2016-01-01""end_date": "2017-01-01""delivery_mode": "online""days": "MWF""time": "14:30""local_code": "01 02 345"info_form": { ... }"id": 123/forms end-point.
It allows the user of this data to look-up the meta-data about the form including the questions.
"startDate": "2012-09-06T00:00:00Z""endDate": "2012-09-06T23:59:59Z""discipline_code": 1611"respondents": [ ... ]"first_name": "Bob""middle_name": "Lee""last_name": "Smith""title": "Dean of Medicine""position_code": 1234"src_id": "9876-5432-10""email": "someName@someInstitution.edu""role": "Primary""sex": "Male""employment_status": "Full-time""appointment": "Tenured""races": []"rater_form": { ... }"id": 123/forms end-point.
It allows the user of this data to look-up the meta-data about the form including the questions.
"startDate": "2012-09-06T00:00:00Z""endDate": "2012-09-06T23:59:59Z""custom_question_groups": [ ... ]"number": 1 "type": "open""title": Question Group 1"message": "question group 1""questions": [ ... ]"id": 1"number": 12"text": "Likert question 8""type": "scaled""value": 1"description": "Very Low""abbreviation": "Very Low""is_excluded": false"response_options":[ ... ]"description": "Very High""abbreviation": "Very High""is_excluded": false"institution_id": 1/institutions end-point. It allows the user of this data to look-up the meta-data about the
institution this survey is associated with (name, FICE, etc.).
"institution_name": "IDEA Center"/institutions end-point.
This request will retrieve up to 10 surveys that are on the 2nd page (page 0 on a zero-number list) where the institution contains IDEA and the survey has reports available.
GET /v1/surveys?page=1&max=10&institution=IDEA&has_reports=true
HTTP 200
{
"max": 10,
"page": 1,
"total_results": 12,
"data": [
{
"id": 123,
"group_id": 234,
"src_name": "IOL3",
"src_id": "4321",
"src_group_id": "5432",
"year": 2012,
"term": "09/03/2012",
"includes_gap_analysis": true,
"demographic_group_ids": [ 654, 657, 658, 662 ], //Optional list that defines what demographic groups were selected.
"end_date": "2012-09-25T00:00:00Z",
"start_date": "2012-09-06T00:00:00Z",
"creation_date": "2012-09-05T14:20:07Z",
"course": {
"title": "Introduction to REST APIs",
"number": "101",
"local_code": "012345", // Institution defined local code
"days": "MWF",
"time": "14:30",
"src_id": "01-23456789-0011",
"subject": "REST",
"type": "undergraduate",
"delivery_mode": "Face to Face",
"term_type": "semester",
"start_date": "2017-01-01",
"end_date": "2017-05-01",
"section": {
"title": "RESTful APIs Lab",
"number": "101a",
"src_id": "01-23456789-0012",
"subject": "REST",
"start_date": "2017-01-01",
"end_date": "2017-05-01",
"delivery_mode": "hybrid",
"days": "TU",
"time": "08:30",
"local_code": "54321" // Institution defined local code
}
},
"info_form":
{
"id": 456,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"respondents":
[
{
"first_name": "Test",
"middle_name": "My",
"last_name": "Subject",
"title": "Dean",
"position_code": 12,
"src_id": "0123-4567890",
"email": "some.person@institution.edu",
"role": "primary",
"sex": "female",
"employment_status": "full-time",
"appointment": "tenured",
"races": [
"Hispanic",
"Pacific Islander"
]
}
]
},
"rater_form":
{
"id": 457,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"custom_question_groups":
[
{
"number": 1,
"type":"open",
"title": "Open Question Group Title",
"message": "This is an open question group message",
"questions":
[
{
"id": 123,
"number": 1,
"text": "This is an open question 1",
"type": "open",
"response_options": []
}
]
},
{
"number": 2,
"type":"scale",
"title": "Scaled Question Group Title",
"message": "This is a scaled question group message",
"questions":
[
{
"id": 124,
"number": 1,
"text": "This is a scaled question 1",
"type": "scaled",
"response_options":
[
{
"value": 1,
"description": "This is option 1",
"abbreviation": "O1",
"is_excluded": false
},
{
"value": 2,
"description": "This is option 2",
"abbreviation": "O2",
"is_excluded": false
},
{
"value": 3,
"description": "This is option 3",
"abbreviation": "O3",
"is_excluded": false
},
{
"value": 4,
"description": "Cannot Judge",
"abbreviation": "CJ",
"is_excluded": true
}
]
}, ...
]
},...
]
},
"institution_id": 54209,
"institution_name": "IDEA Center"
},
{
"id": 123,
"group_id": 235,
"src_name": "IOL3",
"src_id": "4322",
"src_group_id": "5433",
"year": 2012,
"term": "09/03/2012",
"includes_gap_analysis": false,
"end_date": "2012-09-25T00:00:00Z",
"start_date": "2012-09-06T00:00:00Z",
"creation_date": "2012-09-05T14:20:07Z",
"info_form":
{
"id": 456,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"respondents":
[
{
"first_name": "Test",
"middle_name": "My",
"last_name": "Subject",
"title": "Dean",
"position_code": 12,
"src_id": "0123-4567890",
"email": "some.person@institution.edu",
"role": "primary",
"sex": "female",
"employment_status": "full-time",
"appointment": "tenured",
"races": [
"Hispanic",
"Pacific Islander"
]
}
]
},
"rater_form":
{
"id": 457,
"start_date": "2012-09-06T00:00:00Z",
"end_date": "2012-09-25T00:00:00Z",
"custom_question_groups":
[
{
"number": 1,
"type": "open",
"title": "Open Question Group Title",
"message": "This is an open question group message",
"questions":
[
{
"id": 123,
"number": 1,
"text": "This is an open question 1",
"type": "open",
"response_options": []
}
]
},
{
"number": 2,
"type": "scaled",
"title": "Scaled Question Group Title",
"message": "This is a scaled question group message",
"questions":
[
{
"id": 124,
"number": 1,
"text": "This is a scaled question 1",
"type": "scaled",
"response_options":
[
{
"value": 1,
"description": "This is option 1",
"abbreviation": "O1",
"is_excluded": false
},
{
"value": 2,
"description": "This is option 2",
"abbreviation": "O2",
"is_excluded": false
},
{
"value": 3,
"description": "This is option 3",
"abbreviation": "O3",
"is_excluded": false
},
{
"value": 4,
"description": "Cannot Judge",
"abbreviation": "CJ",
"is_excluded": true
}
]
}, ...
]
},...
]
},
"institution_id": 54209,
"institution_name": "IDEA Center"
}]
}