I was testing web services manually using Postman or REST client. I want to automate testing here. I use REST with JSON format. 

**Questions:**

 1. How to use target URL ?

 2. How to pass header values? 

 3. How to pass payload ?

Also please provide examples with code, as it will help me a lot . Thanks in advance.