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

Method data

lib/Controller/ApiController.php:99–111  ·  view source on GitHub ↗
(int $reportId)

Source from the content-addressed store, hash-verified

97 }
98
99 #[NoAdminRequired]
100 #[NoCSRFRequired]
101 #[ApiRoute(verb: 'GET', url: '/api/v1/reports/{reportId}/data')]
102 public function data(int $reportId): DataResponse {
103 // Use the viewer pipeline with saved options only, without request overrides
104 // or conditional caching: every successful response contains the report data.
105 $result = $this->outputController->getData($this->accessibleReport($reportId));
106 unset($result['cache']);
107 if (isset($result['options'])) {
108 $result['options'] = $this->publicMetadata($result['options']);
109 }
110 return new DataResponse($result);
111 }
112
113 /** List owned datasets with their column labels. */
114 #[NoAdminRequired]

Callers

nothing calls this directly

Calls 3

accessibleReportMethod · 0.95
publicMetadataMethod · 0.95
getDataMethod · 0.45

Tested by

no test coverage detected