wip: Add rest api

Close #29
Implements #30 
Would be a switch on `style`, no?