basic api server