Split off and export a function to generate the path functions. Also needs pagination info, so add that to the yaml.
Split off and export a function to generate the path functions. Also needs pagination info, so add that to the yaml.