Add restful API controllers

Add specs and testing for restful API controllers
(•_•)
( •_•)>⌐■-■ 
(⌐■_■)