Public API endpoint set up closes #11