Closed dkvc closed 1 year ago
The header accept: application/json requests the API to return response in JSON format. If server can provide JSON format, it will send back JSON data, else, it returns 406 Not Acceptable status code.
accept: application/json
406 Not Acceptable
Since this is a single commit, rebase and merge is preferred.
The header
accept: application/json
requests the API to return response in JSON format. If server can provide JSON format, it will send back JSON data, else, it returns406 Not Acceptable
status code.