Can anyone explain what is the exact difference between -
1. Content-Type: application/json
2. Accept: application/json
Can anyone explain what is the exact difference between -
1. Content-Type: application/json
2. Accept: application/json
"Content-Type" indicates the format of the message body (either request or response).
"Accept" in a request indicates the preferred format for the response.