REST API JavaScript client generator