Free Google Apigee-API-Engineer Actual Exam Questions - Question 13 Discussion
returning the expected result for the payload you are providing What should you do?
Option D, because the Content-Type header must correctly specify application/json for JSONPath to work.
Makes sense that Content-Type needs to be right since it defines the payload format. Going with D here because without it, JSONPath won’t parse properly even if Accept is fine. D
D, because Content-Type tells Apigee how to interpret the incoming payload format.
Probably D, since the Content-Type header defines the payload format for parsing.
D imo, the Content-Type header tells Apigee how to parse the payload, not Accept.
D. The Content-Type header tells Apigee the format of the incoming payload, so if it’s not application/json, JSONPath won't parse it right. Accept header isn’t relevant here.
D. Make sure the Content-Type header is set to application/json so Apigee knows the payload is JSON and applies the JSONPath correctly.