From bd3f66df60f551a4349d634cd606990b9f91e87d Mon Sep 17 00:00:00 2001 From: Heiko Bernloehr Date: Thu, 18 Jul 2013 13:05:45 +0200 Subject: Bring back "id" attribute to groups in courses resource. In my mail to cc-devel mailinglist[1] I wrote: * We don't need a special "id" attribute for our groups. They are enumerated implicitely, because they form a sequence. So we could decide to virtually enumerate them by starting with 0 (zero), i.e. we could identify the groups with a tuple of ("lectureID",), e.g.: ("lsfproxy.uni-stuttgart.de/campusconnect/courses/443889","0") ("lsfproxy.uni-stuttgart.de/campusconnect/courses/443889","1") ("lsfproxy.uni-stuttgart.de/campusconnect/courses/443889","2") This is because the LMS doesn't give us an unique group id. We get only a simple enumeration of the available groups. If the count of groups changes than the enumeration changes. With hope in the future it is wiser to have such an id. [1] Date: Sun, 26 May 2013 21:23:30 +0200 From: Heiko Bernloehr To: campusconnect-devel@freeit.de Subject: Re: [cc-devel] Simplified course resource Reply-To: campusconnect-devel@freeit.de --- campusconnect/schemas/cc_courses.schema.json | 1 + 1 file changed, 1 insertion(+) diff --git a/campusconnect/schemas/cc_courses.schema.json b/campusconnect/schemas/cc_courses.schema.json index 570b043..df40c83 100644 --- a/campusconnect/schemas/cc_courses.schema.json +++ b/campusconnect/schemas/cc_courses.schema.json @@ -92,6 +92,7 @@ "items": { "type":"object", "properties": { + "id": {"type":"string", "required":true}, "title": {"type":"string"}, "comment": {"type":"string"}, "datesAndVenues": { -- cgit v1.2.3