add rest api for content