Rest API - Request and Response Format
You want to send JSON data to an API and receive a JSON response. Which headers should you set correctly in your HTTP request to ensure this communication?
Content-Type: application/json so the server knows the format of the data you send.Accept: application/json to tell the server you want JSON back.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions