Create base class for API classes.