Added getting comments by branch to the API