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

Method reportDetailV3

lib/Controller/ApiDataController.php:291–305  ·  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

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

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected