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

Method reportDetailV3

lib/Controller/ApiDataController.php:285–299  ·  view source on GitHub ↗

* read data of a dataset with additional information for table and series * @return DataResponse * @throws \Exception */

(int $reportId)

Source from the content-addressed store, hash-verified

283 * @throws \Exception
284 */
285 #[NoAdminRequired]
286 #[NoCSRFRequired]
287 #[CORS]
288 public function reportDetailV3(int $reportId) {
289 $reportMetadata = $this->ReportService->read($reportId);
290 unset($reportMetadata['user_id'], $reportMetadata['link'], $reportMetadata['permissions'], $reportMetadata['dimension3']);
291
292 if (!empty($reportMetadata)) {
293 return new DataResponse($reportMetadata, HTTP::STATUS_OK);
294 } else {
295 return new DataResponse([
296 'message' => 'No metadata available for given $reportId',
297 ], HTTP::STATUS_OK);
298 }
299 }
300
301 /**
302 * add data via there real field names

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected