Spike for a new API for declaring endpoints

You mean the declaration of class members?