update category repo and api