add rest api for category