Following the usage guide on authentication to make a call to the api requires the header Authorization: Bearer <API_KEY>. When supplying it, I get a 401.
It seems like if we don't supply "Bearer" (which we should) then it works!
Reproduction
Run the following with a proper api key:
curl -X GET https://api.ods.elon.edu/ping -H "Authorization: Bearer <VALID_API_KEY>"
We should get an empty body with a 200. Instead, we get a 401.
When running the same curl command without "Bearer" in the header, we get the 200:
curl -X GET https://api.ods.elon.edu/ping -H "Authorization: <VALID_API_KEY>"
Following the usage guide on authentication to make a call to the api requires the header
Authorization: Bearer <API_KEY>
. When supplying it, I get a 401.It seems like if we don't supply "Bearer" (which we should) then it works!
Reproduction
Run the following with a proper api key:
curl -X GET https://api.ods.elon.edu/ping -H "Authorization: Bearer <VALID_API_KEY>"
We should get an empty body with a 200. Instead, we get a 401.
When running the same
curl
command without "Bearer" in the header, we get the 200:curl -X GET https://api.ods.elon.edu/ping -H "Authorization: <VALID_API_KEY>"
When ran in Insomnia: