added generalized REST API boiler for reference