add api server sample