api server finish