Inheritable api_mapping

Fixes #19