Built rest api for comments