change the apiEngineService to support the HTTP server in plug-in project