basic  api server