aboutsummaryrefslogtreecommitdiff
path: root/campusconnect
diff options
context:
space:
mode:
authorHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2011-09-22 03:33:55 +0200
committerHeiko Bernloehr <Heiko.Bernloehr@FreeIT.de>2011-09-22 03:33:55 +0200
commite29463b74d08084d1ec899aed45b999e3a295800 (patch)
tree2df8f50fea859e59b7fe9462b85ffb1e502f7ee0 /campusconnect
parent81f79c6efe69fb5611fb30f75465753636937d5b (diff)
downloadecs2-e29463b74d08084d1ec899aed45b999e3a295800.tar.gz
ecs2-e29463b74d08084d1ec899aed45b999e3a295800.zip
CampusConnect courses schema added.
Diffstat (limited to 'campusconnect')
-rw-r--r--campusconnect/schemas/cc_courses.schema.json190
1 files changed, 190 insertions, 0 deletions
diff --git a/campusconnect/schemas/cc_courses.schema.json b/campusconnect/schemas/cc_courses.schema.json
new file mode 100644
index 0000000..596622e
--- /dev/null
+++ b/campusconnect/schemas/cc_courses.schema.json
@@ -0,0 +1,190 @@
+{
+ "description":"Data schema for JSON representation of CampusConnect courses resource",
+ "type":"object",
+ "properties": {
+ "basicData": {
+ "type":"object",
+ "properties": {
+ "organisation": {"type":"string"},
+ "id": {"type":"string"},
+ "term": {"type":"string"},
+ "number": {"type":"string"},
+ "title": {"type":"string"},
+ "courseType": {"type":"string"},
+ "hoursPerWeek": {"type":"integer"},
+ "maxParticipants": {"type":"integer"},
+ "parallelGroupScenario": {"type":"integer"}
+ },
+ "lecturers": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties":{
+ "firstName": {"type":"string"},
+ "lastName": {"type":"string"}
+ }
+ }
+ },
+ "degreeProgrammes": {
+ "required":true,
+ "type":"array",
+ "items": {
+ "type":"object",
+ "required":true,
+ "properties":{
+ "id": {"type":"string"},
+ "title": {"type":"string"},
+ "code": {"type":"string"},
+ "courseUnitYearOfStudy": {
+ "type":"object",
+ "properties": {
+ "from":{"type":"integer"},
+ "to":{"type":"integer"}
+ }
+ }
+ }
+ }
+ },
+ "allocations": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties":{
+ "parentID": {"type":"integer"},
+ "order": {"type":"integer"}
+ }
+ }
+ },
+ "comment1": {"type":"string"},
+ "comment2": {"type":"string"},
+ "comment3": {"type":"string"},
+ "recommendedReading": {"type":"string"},
+ "organisationalUnit": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties":{
+ "id": {"type":"string"},
+ "title": {"type":"string"}
+ }
+ }
+ },
+ "prerequisites": {"type":"string"},
+ "courseAssessmentMethod": {"type":"string"},
+ "courseTopics": {"type":"string"},
+ "linkToCurriculum": {"type":"string"},
+ "targetAudience": {"type":"string"},
+ "links": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties":{
+ "href": {"type":"string", "format":"uri"},
+ "title": {"type":"string"}
+ }
+ }
+ },
+ "linkToCourse": {
+ "type":"object",
+ "properties":{
+ "href": {"type":"string", "format":"uri"},
+ "title": {"type":"string"}
+ }
+ },
+ "parallelGroups": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "title": {"type":"string"},
+ "id": {"type":"string"},
+ "comment": {"type":"string"},
+ "datesAndVenues": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "cycle": {"type":"string"},
+ "venue": {"type":"string"},
+ "firstDate": {
+ "type":"object",
+ "properties": {
+ "startDatetime": {"type":"string", "format":"date-time"},
+ "endDatetime": {"type":"string", "format":"date-time"}
+ }
+ },
+ "lastDate": {
+ "type":"object",
+ "properties": {
+ "startDatetime": {"type":"string", "format":"date-time"},
+ "endDatetime": {"type":"string", "format":"date-time"}
+ }
+ }
+ }
+ }
+ },
+ "singleDatesAndVenues": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "startDatetime": {"type":"string", "format":"date-time"},
+ "endDatetime": {"type":"string", "format":"date-time"}
+ }
+ }
+ },
+ "maxParticipants": {"type":"integer"},
+ "takesPlace":{"type":"boolean"},
+ "lecturers": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "firstName": {"type":"string"},
+ "lsatName": {"type":"string"}
+ }
+ }
+ },
+ "canceledDates": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "datetime": {"type":"string", "format":"date-time"},
+ "comment": {"type":"string"}
+ }
+ }
+ }
+ }
+ }
+ },
+ "modules": {
+ "type":"array",
+ "items": {
+ "type":"object",
+ "properties": {
+ "id": {"type":"string", "required":"true"},
+ "title": {"type":"string"},
+ "number": {"type":"integer"},
+ "credits": {"type":"integer"},
+ "hoursPerWeek": {"type":"integer"},
+ "duration": {"type":"integer"},
+ "cycle": {"type":"string"},
+ "degreeProgramme": {"type":"string"},
+ "finalExamination": {"type":"string"},
+ "label": {"type":"string"},
+ "regulationsVersion": {"type":"string"},
+ "degreeProgrammeCode": {"type":"string"},
+ "prerequisites": {"type":"string"},
+ "learningObjectives": {"type":"string"},
+ "recommendedReading": {"type":"string"},
+ "description": {"type":"string"},
+ "workload": {"type":"string"},
+ "studyAssessmentMethods": {"type":"string"},
+ "examinationAssessmentMethods": {"type":"string"}
+ }
+ }
+ }
+ }
+ }
+}