Spike for a new API for declaring endpoints