Exemple #1
0
        private static ApiModule SetModuleStandardProperties(TCFolder moduleFolder,
                                                             string name,
                                                             string correlationId,
                                                             string scanTag)
        {
            ApiModule requestApiModule = moduleFolder.CreateApiModule();

            requestApiModule.Name = name;
            requestApiModule.EnsureUniqueName();
            requestApiModule.AddTechnicalIdParam("CorrelationId", correlationId);
            requestApiModule.AddTechnicalIdParam("Version", AddOnConstants.ToscaVersion);
            requestApiModule.AddConfigurationParam("Engine", "API");
            requestApiModule.AddTechnicalIdParam("ScanTag", scanTag);
            return(requestApiModule);
        }