Example #1
0
        public EndpointExplorerModel get_endpoints(RoutesRequest request)
        {
            var reports = _graph.Behaviors.Where(IsNotDiagnosticRoute).Select(x => RouteReport.ForChain(x, _urls)).OrderBy(x => x.Route);

            return(new EndpointExplorerModel
            {
                EndpointsTable = new EndpointsTable(reports)
            });
        }
        public void AddRow(RouteReport report)
        {
            AddBodyRow(row => {
                row.Cell().Add("a").Text("Details").Attr("href", report.DetailsUrl);
                row.Cell(report.Route);
                row.Cell(report.Constraints);
                row.Cell(report.Action.Join(", "));

                row.Data("summary-url", report.SummaryUrl);
            });
        }