api namespace and routes