Automating POST Request using Rest Assured - Part 2

In the previous post, we learned about automating a POST request by sending a string in the body method. In this post, we will focus on automating a POST request by sending an object in the body method instead of string. The reason behind sending an object in body method is that sending a string with large number of parameter can become tedious and updating a string having n number of parameters may become time consuming. Hence, it is always recommended to send an object in body method. Now lets look at an example of automating POST request using Rest Assured. public class Posts { public String id ; public String title ; public String author ; public void setId ( String id ) { this . id = id ; } public void setTitle ( String title ) { this . title = title ; } public void setAuthor ( String author ) { this . author = author ; } public String getId () { return id ; } public...