API reports/route return Excell instead JSON

ivajlo7 years ago

Hey guys,

When i use the API call to [reports/route] endpoint - the report is returned in Excell format instead of JSON. Other reports like reports/trips or reports/stops works fine and return JSON.

Could you please help me to resolve this issue?
Thank you.

Anton Tananaev7 years ago

You need to include correct Accept header in the request.

ivajlo7 years ago

Thank you. Adding Accept: application/json fix the issue.