fixes #289 - REST API for definitions