We use REST-assured to test REST based APIs and the best thing about it is that it can be used with the help of maven dependencies. Here we have provided some basic commonly used code blocks to show How to perform API Testing with REST-assured. Example tests included for validate Status code, Status line and Response body using REST-assured and Java for API Test automation