Changed the code for the Rest API web service request. Complete the test
code to complete the requirement