add rest api for content categories

Same issue as the response for HTTP POST.