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