How to automate Rest API HTTP Post method including Authentication

I need help for automating Rest API HTTP Post method for our application. I was going through http://toolsqa.com/rest-assured/ and observed that authorization part is not yet completed. So, could you please let me know the code how to pass Authentication information in the Request header?

I really appreciate this simple  way of writing this rest-assured in toolsqa.

Default Asked on April 12, 2018 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    Might below link will help to you

     

    http://www.oodlestechnologies.com/blogs/Sending-http-request-%7C-Post-String-data-%28-JSON-%29-%7C-with-authentication

    Default Answered on April 13, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.