QuestionQ9

VerifiedUnderstanding and Using APIs

Refer to the exhibit.

Question Image

An API request is created to retrieve the inventory in XML format by using the API. The response is 401 Unauthorized. Which two headers must be added to the API request?

Choose two
Explanation

Bearer-token authentication is sent in the standard Authorization request header with the Bearer scheme. The Accept header specifies the desired response media type, such as application/xml. A Content-Type header describes the format of a request body, which is not needed for this GET request.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!