rest impl of AddService.js