Fix call to fields_name in endpoint scaffold template

[ci skip]