Fix some bugs in REST services
Add postman tests