REST API demo

The purpose of this GUI demo is to show how you can add a custom JS library and do some REST queries via JavaScript. More info about the REST API can be found in the REST admin section

The demo also shows how to integrate a JS library to implement custom UI widgets. In this case a simple jQuery plugin has been integrated: http://listjs.com. We use a public CDN for loading of the library. See the GuiDemoRESTController class to see how simple it is.

#if($restEnabled)

REST API status:   activated

## DOM container for example 1)

OpenOLAT License fetched via REST API

Path: $r.relLink("restapi/api/copyright")

loading...
## DOM container for example 2)

My group list via REST API

Path: $r.relLink("restapi/groups/")

loading...
## DOM container for example 3)

My course list via REST API

Path: $r.relLink("restapi/courses/")

loading...
#else

Sorry

This demo only works when the REST module is enabled!

The configuration change changed in the REST admin section

#end