API for moodle-mod_booking