Split off and export a function to generate the main call function. Optionally include auth and pagination, but ideally sort out how to allow those to come later. Optionally have user provide endpoint + extra params for test? Then later we could infer that and provide a default.
Split off and export a function to generate the main call function. Optionally include auth and pagination, but ideally sort out how to allow those to come later. Optionally have user provide endpoint + extra params for test? Then later we could infer that and provide a default.