Add restful API controllers

Add specs and testing for restful API controllers
solid. thanks for this level of quality.