(int $reportId)
| 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] |
nothing calls this directly
no test coverage detected