QuestionQ56

VerifiedDesigning APIs and Connectivity

Refer to the exhibits. The web client sends a POST request to the ACME Orders API using an XML payload.

An error is returned. What must be changed in the request for the web client to receive a successful response code?

Question Image

Explanation

The request body is XML and the API endpoint accepts application/xml. Setting the request Content-Type header to application/xml lets the server select the XML body parser; multipart/mixed is unsupported for this endpoint and results in HTTP 415.

Community Discussion

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