Home > Software design >  How can I put header parameter in a Url?
How can I put header parameter in a Url?

Time:05-22

I want to get data from API. So first I want to get Json response from the browser. I Usually do it by specifying a query to pass the API key. But this time the API key is passed using header parameter instead of a query. How can I pass the API into a header parameter?

This is the base Url

"https://api-nba-v1.p.rapidapi.com"

This is the header parameter:

x-rapidapi-key

CodePudding user response:

You can try to issue this request first using some rest client like postman or insomnia.

  • Related