Getting full assessments result via RESTAPI

28 views
Skip to first unread message

reflexs...@gmail.com

unread,
Apr 15, 2015, 10:24:06 AM4/15/15
to open...@googlegroups.com
Hi everybody,
i want to get the full assessment results of a course, but what i get it just a list of users who are part of that course.
When i have a look at the results at the webpage, i can see two users, who succeeded..


Result looks like this:

<assessableResultsVOes><assessableResultsVO><identityKey>2654208</identityKey><lastModifiedDate>2015-04-09T15:58:23Z</lastModifiedDate></assessableResultsVO><assessableResultsVO><identityKey>3735553</identityKey></assessableResultsVO><assessableResultsVO><identityKey>9699328</identityKey></assessableResultsVO><assessableResultsVO><identityKey>9699347</identityKey></assessableResultsVO>
</assessableResultsVOes>

If i look at the documentation the result should be like this:
<assessableResultsVOes>
    <assessableResultsVO>
        <identityKey>345</identityKey>
        <score>34.0</score>
        <passed>true</passed>
    </assessableResultsVO>
</assessableResultsVOes>


Kind regards,
Joerg

Florian Gnägi

unread,
Apr 15, 2015, 11:05:12 AM4/15/15
to open...@googlegroups.com
Hi Joerg

Did you use this URL: 

/repo/courses/{courseId}/assessments/{nodeId}/users/{identityKey}

Cheers
Florian

--
--
Sie erhalten diese Nachricht, weil Sie Mitglied sind von Google
Groups-Gruppe "OpenOLAT".
Für das Erstellen von Beiträgen in dieser Gruppe senden Sie eine E-Mail
an open...@googlegroups.com
Um sich von dieser Gruppe abzumelden, senden Sie eine E-Mail an
openolat+u...@googlegroups.com
Weitere Optionen finden Sie in dieser Gruppe unter
http://groups.google.com/group/openolat?hl=de
-------------------------------------------------------------------------------------------------------------------
OpenOLAT - infinite learning - http://www.openolat.org

---
You received this message because you are subscribed to the Google Groups "OpenOLAT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openolat+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

----------------------------------------------------------
professional services for the e-learning system OpenOLAT
 hosting - operating - support - development - consulting
----------------------------------------------------------

frentix  GmbH
Florian Gnägi, Geschäftsführer
Hardturmstrasse 76
CH-8005 Zürich, Switzerland

skype:gnaegi  twitter:gnaegi  xing:Florian_Gnaegi 
----------------------------------------------------------




reflexs...@gmail.com

unread,
Apr 16, 2015, 9:16:09 AM4/16/15
to open...@googlegroups.com
Hi Florian,
thanks for your answer.

No, i did this:
/repo/courses/91221402113088/assessments

I have seen the one, you suggest. But what is the nodeid? (or how can i query it, it seems not to be part of the course informations)

Kind regards,
Joerg

Florian Gnägi

unread,
Apr 16, 2015, 9:49:45 AM4/16/15
to open...@googlegroups.com
Hi Joerg

It is the course element ID, the thing you see in the perma URL at the bottom of the page when you are in a course element. You could also use /repo/courses/{courseId}/elements/assessment to get a listing. 

Cheers
Florian

reflexs...@gmail.com

unread,
Apr 16, 2015, 10:16:37 AM4/16/15
to open...@googlegroups.com
Hi Florian,
the url you suggest, delivers nothing to me. Just status "200 OK" but no data inside.

What works is: /repo/courses/91221402113088/assessments/{part of the permaURL}
So this would be ok and working, but where/how to get that part of the perma link just via RESTAP?

Kind regards,
Joerg
...

Florian Gnägi

unread,
Apr 17, 2015, 5:51:10 AM4/17/15
to open...@googlegroups.com
Hi Joerg

/repo/courses/{courseId}  -> Read editorRootNodeId
/repo/courses/{courseId}/elements/{editorRootNodeId}  -> read first level of nodes
repeat until you find the element you want to get assessment info from
/repo/courses/{courseId}/assessments/{nodeId}/users/{identityKey}  -> read the assessment info for your assessable course element

Cheers
Florian
Reply all
Reply to author
Forward
0 new messages