Adding a public API that exposes the data via JSON