Handle camel case names for the publicapi endpoints

rename this to _mapToRestClass