@using System.Linq @using ApiGenerator.Domain @using ApiGenerator @using ApiGenerator.Configuration @inherits CodeTemplatePage @{ await IncludeGeneratorNotice(); } namespace OpenSearch.Client { internal static partial class ApiUrlsLookups { @foreach (var endpoint in Model.Endpoints.Values) { if (CodeConfiguration.IgnoreHighLevelApi(endpoint.Name)) { continue; } var propertyName = $"{endpoint.CsharpNames.Namespace}{endpoint.CsharpNames.MethodName}"; var paths = endpoint.Url.Paths.Count == 0 ? endpoint.Url.PathsWithDeprecations : endpoint.Url.Paths; internal static ApiUrls @(Raw(propertyName)) = new ApiUrls(new [] {@Raw(string.Join(", ", paths.Select(p=>$"\"{p.Path.TrimStart('/')}\"")))}); } } }