Hello everyone, in this lecture we are going to see how to pass HTTP header in APA request. The sample APA we are going to use is from am g you are APA with DISA get APA. Here, we are going to pass this API request and we will be parsing username and in headers, we will be parsing this authorization with client ID. Let us do that. Let me copy this APA request and go to get lunch to do. Let me create a new web service request and am giving neighbors amdr with HTTP header.
This is a sample up request which has HTTP header and our object repository is created. I'm selecting the method get and I am parsing the URL and username. I am providing my username from amg.com. You can register with IMG or and get your username and client ID. My username is would mean strydom learning is my username. This is what I am going to use and copying it and pasting it here.
Instead near the account instead of that username and go to HTTP header in HTTP header. We need to provide header name as authorization and the client ID with that client ID they gave. Let us do it. I'm going to hit HTTP header and adding it and am providing neighbors racism and choosing authorization and I am providing value us client ID client ID and here I am providing value as client ID. And in this client add curly brace we need to provide their actual client ID provided from IMG or this is the owner of that client ad they provided. They will provide if you register using IMG or.com and I am taking that and providing it here and I am saving it I'm sorry And I'm saving it.
Now, let us run this GET request, which has HTTP header. And this is the response we will get if we run this. And it status is 200. And this is the response data. just ran this button and you will see the response. In the right side.
Yeah. This is how we need to pass HTTP headers in our object repository.