I am trying to learn something about how APIs work. I was told that DOL has the best API and supporting documentation in the federal government.
So here I am, on page 1 of the beginner's guide, and find this completely contradictory information:
By default, the DOL V1 (api.dol.gov) API's responses are in XML format. To receive the data in JSON, send an "Accept" header with "application/json."
Data.dol.gov sends responses by default in JSON format. To customize the return format, simply add /format/xml or /format/json to the request URL.
What on earth is going on here?