Add restful API controllers

Add specs and testing for restful API controllers
these methods are super nice.