getting controller working in pure REST