Rest-API

Bug fix