API reports/route return Excell instead JSON

ivajlo8 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 Tananaev8 years ago

You need to include correct Accept header in the request.

ivajlo8 years ago

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