Simple Spring REST service with custom JSON generator
What's inside ?
How to add or modify fields to JSON value.
- Rest controller with @RestController
- Custom made json converter for poGo
- Use groovy trait to add attribute to a poGo
- MockMvc usage with Spock Framework to check if the JSON is good
All in groovy, in a SpringBoot application with gradle