Add metaclass for easier automatic api url