Skip to content

Commit

Permalink
consider TSV stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
bozana committed Aug 26, 2024
1 parent ca9a432 commit ebf5f01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions api/v1/stats/sushi/StatsSushiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use Symfony\Component\HttpFoundation\StreamedResponse;

class StatsSushiController extends \PKP\API\v1\stats\sushi\PKPStatsSushiController
{
Expand Down Expand Up @@ -52,7 +53,7 @@ public function getGroupRoutes(): void
* A customizable report detailing activity at the journal level
* that allows the user to apply filters and select other configuration options for the report.
*/
public function getReportsTR(Request $illuminateRequest): JsonResponse
public function getReportsTR(Request $illuminateRequest): JsonResponse|StreamedResponse
{
return $this->getReportResponse(new TR(), $illuminateRequest);
}
Expand All @@ -61,7 +62,7 @@ public function getReportsTR(Request $illuminateRequest): JsonResponse
* COUNTER 'Journal Usage by Access Type' [TR_J3].
* This is a Standard View of Title Master Report that reports on usage of journal content for all Metric_Types broken down by Access_Type.
*/
public function getReportsTRJ3(Request $illuminateRequest): JsonResponse
public function getReportsTRJ3(Request $illuminateRequest): JsonResponse|StreamedResponse
{
return $this->getReportResponse(new TR_J3(), $illuminateRequest);
}
Expand All @@ -71,7 +72,7 @@ public function getReportsTRJ3(Request $illuminateRequest): JsonResponse
* A customizable report detailing activity at the article level
* that allows the user to apply filters and select other configuration options for the report.
*/
public function getReportsIR(Request $illuminateRequest): JsonResponse
public function getReportsIR(Request $illuminateRequest): JsonResponse|StreamedResponse
{
return $this->getReportResponse(new IR(), $illuminateRequest);
}
Expand All @@ -80,7 +81,7 @@ public function getReportsIR(Request $illuminateRequest): JsonResponse
* COUNTER 'Journal Article Requests' [IR_A1].
* This is a Standard View of Item Master Report that reports on journal article requests at the article level.
*/
public function getReportsIRA1(Request $illuminateRequest): JsonResponse
public function getReportsIRA1(Request $illuminateRequest): JsonResponse|StreamedResponse
{
return $this->getReportResponse(new IR_A1(), $illuminateRequest);
}
Expand Down

0 comments on commit ebf5f01

Please sign in to comment.