add a controller for the web api restful interface