* read data of a dataset with additional information for table and series * @return DataResponse * @throws \Exception */
(int $reportId)
| 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 |