Update page 'API Documentaion'

Jannik 2019-03-12 21:51:07 +01:00
parent 4aace136ea
commit 3ca273f5ae

@ -12,17 +12,17 @@ Section that contains the specification for the courses get request. /courses re
"time":1552406531 "time":1552406531
}, },
"courses":[ "courses":[
{ {
"courseName":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=B6B2BF01-9DBA-4017-9245-4BEDF823E0CA&week=0", "courseName":"AI1",
"courseLink":"AI1" "courseLink":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=B6B2BF01-9DBA-4017-9245-4BEDF823E0CA&week=0"
}, },
{ {
"courseName":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=B6DB6637-51BA-47CC-BD69-9CEE1A336333&week=0", "courseName":"AI2",
"courseLink":"AI2" "courseLink":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=B6DB6637-51BA-47CC-BD69-9CEE1A336333&week=0"
}, },
{ {
"courseName":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=DA64F6FE-9DDB-429E-A677-05D0D40CB636&week=0", "courseName":"AI3",
"courseLink":"AI3" "courseLink":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=DA64F6FE-9DDB-429E-A677-05D0D40CB636&week=0"
}, },
... ...
] ]
@ -40,60 +40,52 @@ Each lesson has the following values:
``` json ``` json
{ {
"meta": { "meta":{
"coursename": "AI3" "courseName":"AI4",
}, "courseLink":"https://www.hs-offenburg.de/index.php?id=6627&class=class&iddV=5D255C23-BC03-4AA0-9F36-DC6767F3E05D&week=0",
"Monday": [ "time":1552423212
{ },
"lessonID": "0.0.0", "currentWeek":{
"subject": "Computernetze 1", "days":[
"teacher": "Mayer E.", {
"room": "A213", "timeslots":[
"remark": "" [
}, {
{ "lessonID":"0.0.0",
"lessonID": "0.1.0", "lessonSubject":"Einzeltermin",
"subject": "", "lessonTeacher":"Dorer",
"teacher": "", "lessonRoom":"B014",
"room": "", "lessonRemark":"Kolloquium betriebliche Praxis"
"remark": "" }
}, ],
, [
{ {
"lessonID": "0.2.0", "lessonID":"0.1.0",
"subject": "Systemprogramm.", "lessonSubject":"Mathematik 4",
"teacher": "Mayer E.", "lessonTeacher":"Decker E.",
"room": "A213", "lessonRoom":"B121, B206",
"remark": "" "lessonRemark":""
}, },
... {
], "lessonID":"0.1.1",
"Tuesday": [ "lessonSubject":"Mathematik 4",
{ "lessonTeacher":"Orb",
"lessonID": "1.0.0", "lessonRoom":"B206, B121",
"subject": "", "lessonRemark":""
"teacher": "", },
"room": "", {
"remark": "" "lessonID":"0.1.2",
}, "lessonSubject":"Einzeltermin",
{ "lessonTeacher":"Dorer",
"lessonID": "1.1.0", "lessonRoom":"B014",
"subject": "Softw. Engin. 1", "lessonRemark":"Kolloquium betriebliche Praxis"
"teacher": "Dorer", }
"room": "B005", ]
"remark": "" ]
}, },
, ...
{ ]
"lessonID": "1.2.0", }
"subject": "Softw. Engin. 1",
"teacher": "Dorer",
"room": "B005",
"remark": ""
},
...
],
...
} }
``` ```
@ -103,45 +95,58 @@ Section that contains the specification for the /mensamenu get request. /mensame
``` json ``` json
{ {
"Monday": [ "meta":{
{ "mensaName":"Offenburg",
"heading": "Essen 1", "time":1552423539
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", },
"additives": "" "currentWeek":{
}, "days":[
{ {
"heading": "Essen 2", "meals":[
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", {
"additives": "" "day":"Montag 11.03.",
}, "heading":"Essen 1",
{ "parts":[
"heading": "Buffet", "Gnocchi",
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", "Salbeibutter",
"additives": "" "Tomaten-Pilzragout",
}, "Geriebener Mozzarella",
... "Beilagensalat"
], ],
"Tuesday": [ "additives":"enthält Allergene: Ei,Se,Gl,GlW,ML"
{ },
"heading": "Essen 1", {
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", "day":"Montag 11.03.",
"additives": "" "heading":"Essen 2",
}, "parts":[
{ "Geflügel Saté-Spieß",
"heading": "Essen 2", "Erdnusssauce",
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", "Butterreis",
"additives": "" "Chinagemüse"
}, ],
{ "additives":"enthält Allergene: Ei,Er,So,Sn,Fi,Se,Sa,Gl,GlW,GlG,ML"
"heading": "Buffet", },
"meal": "Cordon bleu vom Schwein\nBratensauce\nPommes frites\nBeilagensalat ", {
"additives": "" "day":"Montag 11.03.",
}, "heading":"Buffet",
... "parts":[
], "Grill und Salatbar",
... "Asiatisches aus dem Wok",
"Fleisch- und Fischspezialitäten",
"Pasta-, Reis und Kartoffelvariationen",
"Gemüse"
],
"additives":""
}
],
...
}
]
},
"nextWeek":{
...
}
} }
``` ```