MCPcopy Create free account
hub / github.com/Rello/analytics / index

Method index

lib/Controller/ApiController.php:78–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 #[NoAdminRequired]
79 #[NoCSRFRequired]
80 #[ApiRoute(verb: 'GET', url: '/api/v1/reports')]
81 public function index(): DataResponse {
82 $reports = array_values(array_filter(
83 $this->reportService->index(),
84 static fn (array $report): bool => (int)$report['type'] !== ReportService::REPORT_TYPE_GROUP
85 ));
86 return new DataResponse(array_map(
87 static fn (array $report): array => array_intersect_key($report, array_flip(['id', 'name', 'dataset'])),
88 $reports
89 ));
90 }
91
92 #[NoAdminRequired]
93 #[NoCSRFRequired]

Callers 2

datasetIndexV3Method · 0.45
reportIndexV3Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected