Typo
Override method instead of using getattr. Return class names dynamically using getattr in RestApi class.