Implement api base.