Scaffold collections api endpoint