Add RESTful API for externals.