'How can I fill SVG template using Spring Boot?

I have an Image taken from https://github.com/fredericojordan/progress-bar/blob/master/templates/progress.svg, How can I edit it and in addition fill it with params I get from API (controller mapping) and return it to user with appropriate content type?

I dont mind changing the inner SVG tags if needed.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source