use controller parent class for external api