test api server
prototype works, but no error handling yet