Fixed other small errors in RestAPI