I need to generate a Json response for a POST made with parameters in form data, not in Json.
Example: My request:
curl -X POST -H "Accept: application/json" -H "Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW" -F "firstName=Manolete" -F "lastName=Manolón" -F "address=villa arriba" -F "city=meryville" -F "telephone=666666666" -F "homepage=alguna.homepage.es" -F "email=alguno@hotmail.com" -F "birthday=1314595427866" "http://localhost:8080/PetClinicRoo/owners"
Current request:
curl -X POST -H "Accept: application/json" -d '{firstName: "Manolete", lastName:"Manolón", address:"villa arriba", city: "Meryville", telephone:"66666666", homepage:"alguna.homepage.es", email:"alguno@hotmail.com", birthDay: 1314596527943, }' "http://localhost:8080/PetClinicRoo/owners"
I could handwrite the code but this implies getting out of spring roo management all the application web tier, and further modifications wouldn't be automatically made.