script to run REST API server