Added registerApiServer method