diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2013-04-25 14:44:06 +0200 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2013-05-27 09:41:23 +0200 |
commit | 91b1011b435b1f35c8d601ef5afa62385bf4b3b5 (patch) | |
tree | 10b924632dd888c863f5f02d8d35488c65f8c9e8 | |
parent | afbfe0b2866723bc78c2d007fa6b9650d885f063 (diff) | |
download | ecs2-91b1011b435b1f35c8d601ef5afa62385bf4b3b5.tar.gz ecs2-91b1011b435b1f35c8d601ef5afa62385bf4b3b5.zip |
Reworking/simplification of courses resource.
-rw-r--r-- | campusconnect/schemas/cc_courses.schema.json | 58 |
1 files changed, 17 insertions, 41 deletions
diff --git a/campusconnect/schemas/cc_courses.schema.json b/campusconnect/schemas/cc_courses.schema.json index 183af0c..9bd3e39 100644 --- a/campusconnect/schemas/cc_courses.schema.json +++ b/campusconnect/schemas/cc_courses.schema.json @@ -3,31 +3,12 @@ "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"}, - "parallelGroupScenario": {"type":"integer"} - }, - "additionalProperties" : false - }, - "lecturers": { - "type":"array", - "items": { - "type":"object", - "properties":{ - "firstName": {"type":"string"}, - "lastName": {"type":"string"} - }, - "additionalProperties" : false - } - }, + "organisation": {"type":"string"}, + "number": {"type":"string"}, + "term": {"type":"string"}, + "courseType": {"type":"string"}, + "hoursPerWeek": {"type":"integer"}, + "parallelGroupScenario": {"type":"integer"}, "degreeProgrammes": { "type":"array", "items": { @@ -63,7 +44,7 @@ "comment2": {"type":"string"}, "comment3": {"type":"string"}, "recommendedReading": {"type":"string"}, - "organisationalUnit": { + "organisationalUnits": { "type":"array", "items": { "type":"object", @@ -78,7 +59,7 @@ "courseAssessmentMethod": {"type":"string"}, "courseTopics": {"type":"string"}, "linkToCurriculum": {"type":"string"}, - "targetAudience": {"type":"string"}, + "targetAudiences": {"type":"string"}, "links": { "type":"array", "items": { @@ -103,33 +84,28 @@ "items": { "type":"object", "properties": { - "id": {"type":"string"}, + "id": {"type":"string", "required":true}, + "title": {"type":"string", "required":true}, "comment": {"type":"string"}, - "firstDate": {"type":"string"}, - "lastDate": {"type":"string"}, "datesAndVenues": { "type":"array", "items": { "type":"object", "properties": { - "day": {"type":"string"}, - "start": {"type":"string"}, - "end": {"type":"string"}, - "timeZone": {"type":"string"}, "cycle": {"type":"string"}, "venue": {"type":"string"}, "firstDate": { "type":"object", "properties": { - "startDatetime": {"type":"string", "format":"date-time"}, - "endDatetime": {"type":"string", "format":"date-time"} + "startDatetime": {"type":"string"}, + "endDatetime": {"type":"string"} } }, "lastDate": { "type":"object", "properties": { - "startDatetime": {"type":"string", "format":"date-time"}, - "endDatetime": {"type":"string", "format":"date-time"} + "startDatetime": {"type":"string"}, + "endDatetime": {"type":"string"} }, "additionalProperties" : false } @@ -146,8 +122,8 @@ "date": { "type":"object", "properties": { - "startDatetime": {"type":"string", "format":"date-time"}, - "endDatetime": {"type":"string", "format":"date-time"} + "startDatetime": {"type":"string"}, + "endDatetime": {"type":"string"} }, "additionalProperties" : false } @@ -173,7 +149,7 @@ "items": { "type":"object", "properties": { - "datetime": {"type":"string", "format":"date-time"}, + "datetime": {"type":"string"}, "comment": {"type":"string"} }, "additionalProperties" : false |