Closed arundotin closed 6 years ago
I solved this !! the request.body
as shown above is just sending the dependencyList
as a list
object itself and not as a String
as expected by the API.
so i changed it to below way and it worked as expected :)
post {
request.body = dependencyList.toString()
response.success {
println "Success"
}
}
I am making
Http Post
call using theplugin io.github.http-builder-ng.http-plugin
. Below is mybuild.gradle
This is my
dependencyList
parameter that am sending inrequest.body
My java code in my backend API (written in Spring Boot) just prints in this format
When i hit this API from my postman, the response is correct- see below print from the code
whereas when i hit the same API from my gradle task, my java code prints it this way.. because the inner objects are null
Am not sure if am missing anything