Prototypal inheritance for API services