METIS-Project / ILDE

Master Repository for the ILDE Platform
8 stars 1 forks source link

Implement anonymous getting of courses #3

Closed lprisan closed 11 years ago

lprisan commented 11 years ago

i.e. without creating a /learningEnvironment first.

/GLUEPSManager/courses?type=Moodle&accessLocation=&creduser=&credsecret=

javierht commented 11 years ago

It returns a JSON (or an XML) with a "learning-environment" structure with the following information: type, accessLocation, creduser, credsecret (as provided in the request), internalTools, externalTools, courses

The LE 'id' and 'name' are unknown by Glue!PS, so they aren't provided

JSON format example:

{"type":"Moodle","accessLocation":"http://pandora.tel.uva.es/pruebamoodle/","creduser":"javierhtUser","credsecret":"javierhtPassword","internalTools":{"http://localhost:8287/GLUEPSManager/learningEnvironments/null/tools/assignment":"Assignment (Moodle)","http://localhost:8287/GLUEPSManager/learningEnvironments/null/tools/chat":"Chat (Moodle)"},"externalTools":{"19":"AR Image","17":"Doodle"},"courses":{"95":"Orienteering in Las Moreras","94":"prueba2-bucket"},"showAr":true}

javierht commented 11 years ago

closed