Error 415 Unsupported Media Type while doing post action

290 views
Skip to first unread message

subrat jyetki

unread,
Aug 24, 2016, 4:13:44 AM8/24/16
to REST assured
HI All ,

I am trying to do post action 

given().that().contentType("application/json").header("Authorization",TokenID).and().
body(jsoninput("C:\\my \\input.json")).when() .post("").andReturn(); 


but getting Error 415 Unsupported Media Type


Please help

Regards
Subrat

Johan Haleby

unread,
Aug 24, 2016, 4:15:01 AM8/24/16
to rest-a...@googlegroups.com
ok, could it be that the media (content) type you're providing is indeed not supported?

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages