basic web server for api