While Barney Miller might not be well-remembered outside of sitcom obsessives and television historians, the show was a palpably huge influence on Brooklyn Nine-Nine. Barney Miller is one of countless cop shows, but the 70s sitcom gained and retained a cult audience thanks to its unique tone. Cited by the late actor Dennis Farina (who worked as a Chicago police officer before becoming an actor) as the “most realistic cop show on television,” Barney Miller was a workplace sitcom that focused on the surprisingly uneventful comings and goings of a Greenwich Village police precinct.
https://screenrant.com/brooklyn-nine-nine-barney-miller-helped-make/