first attempt at building rest services for searching, need to setup a web server next