AnvayKharb opened a new pull request, #6092:
URL: https://github.com/apache/fineract/pull/6092

   
   Restores the Templates API response contract expected by the Mifos Web App.
   
   After FINERACT-2564, `GET /templates` returned id-only template objects and 
`GET /templates/{id}/template` returned raw template data instead of the 
wrapper used by the Web App. This caused WEB-1021: blank template list rows and 
a blank edit screen.
   
   ## Changes
   
   - Return full template data from `GET /templates`.
   - Restore `GET /templates/{id}/template` response wrapper with:
     - `entities`
     - `types`
     - `template`
   - Keep `GET /templates/{id}` as raw template data.
   - Map template `entity` and `type` as names, matching the previous API shape.
   - Add regression tests for list, edit wrapper, raw retrieval, mapper output, 
and query filtering.
   
   ## Testing
   
   - `./gradlew :fineract-provider:test --tests 
org.apache.fineract.template.api.TemplatesApiResourceTest --tests 
org.apache.fineract.template.mapper.TemplateMapperTest --tests 
org.apache.fineract.template.service.TemplateDomainServiceImplTest`
   - `./gradlew :fineract-provider:spotlessJavaCheck`
   
   Fixes WEB-1021.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to