I\'m trying to invoke a rest call using rest assured. My API accepts, \"application/json\" as content type and I need to set in the call. I set the content type
\"application/json\"
For your First option can you please try adding this header too and sending the request?
.header("Accept","application/json")