[ 
https://issues.apache.org/jira/browse/FINERACT-2651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090560#comment-18090560
 ] 

Dhroov Sankla commented on FINERACT-2651:
-----------------------------------------

[~ashhar] Got it!

> Refactor MixReportApiResource to enforce type-safe JAX-RS Response patterns
> ---------------------------------------------------------------------------
>
>                 Key: FINERACT-2651
>                 URL: https://issues.apache.org/jira/browse/FINERACT-2651
>             Project: Apache Fineract
>          Issue Type: Improvement
>          Components: Reports
>            Reporter: Dhroov Sankla
>            Priority: Minor
>
> While exploring the Mix module, I noticed a couple of structural *TODO* 
> comments regarding type safety and marshalling engines. 
> Currently, `{*}MixReportApiResource.java{*}` returns a raw `String` for the 
> XBRL report endpoint, which bypasses native JAX-RS framework response 
> handling and content negotiation. 
> Proposed Changes:
> 1. Refactor `retrieveXBRLReport` inside `MixReportApiResource` to return an 
> explicitly typed `jakarta.ws.rs.core.Response` wrapper entity.
> 2. Remove the outdated placeholder TODO comments in `MixReportApiResource` 
> and `MixReportXBRLBuilder` to clean up the codebase.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to