This spring boot application contains 2 APIs to test how input can be mapped to DTO by Spring.
curl -i -X POST \
-H "Content-Type:application/json" \
-d \
'{"a":"azaz"}' \
'http://localhost:8500/api/test'
returns:
{"a":"azaz"}
curl -i -X GET \
-H "Content-Type:application/json" \
'http://localhost:8500/api/test?a=azaz'
returns:
{"a":null}