map out rest api to mediaService.md