add rest api for content categories

Let's drop one of them?