renaming 'data' namespace to 'api'