add rest api for content categories

why the duplication here?