Simple api server/client