comment entity and api