OPENOLAT REST API

58 views
Skip to first unread message

Ivano Gnoni

unread,
Jun 30, 2015, 12:57:24 PM6/30/15
to open...@googlegroups.com
Hi, I'm trying to use the REST API services of OpenOLAT.

1. how I can authenticate through the services of OO?

I'm trying to use the services: http://<my-host>:8088/auth/administrator?openolat&x-olat-token. Services respond 302 but I don't know hot to procede to call the others services as authenticated user.


2. how need to upload on platform a zip file of a course to import it among the courses.
I think I can use the service "10.0.3.187:8088/restapi/repo/entries" in PUT mode, but I cant't find on your documentation the parameters for this service.
Is this the way? Is there another way I can take?

3. when I call the service: http://10.0.3.187:8088/restapi/repo/entries/1966081/file I get wrong response and error code 406. I try to set these headers properties whitout success:
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip, deflate, sdch
Accept-Language:it-IT,it;q=0.8,en-US;q=0.6,en;q=0.4

Thanks Ivano
Reply all
Reply to author
Forward
0 new messages