Get REST view working properly