####Codes and Tests Prepared by: ####Mustafa YAT QA Test Automation Engineer
- RestAssured Java API
- Build Tool: Maven
- Test Framework: TestNG
Write a Java application that allows a user to query and show details for a given UK postcode.
##Api Rest Service
http://postcodes.io
##API methods for Test:
GET /postcodes/{POSTCODE}GET /postcodes/{POSTCODE}/validateGET /postcodes/{POSTCODE}/nearestGET /random/postcodes
validatePostcode("CB3 0FA")
countryAndRegion("CB3 0FA");
nearestPostcodesInfo("CB3 0FA")
Endpoint tests to validate the apis from postcodes.io. TestNG have been used to write the api tests. Maven has been chosen as the build tool. In order to make endpoint calls RestAssured library has been used
Run the command below to execute the tests
mvn verify
or run the testng_runner.xml file through an IDE