evz / magnificent-mileage

Open Trip Planner instance for Chicago
2 stars 3 forks source link

set default REST API response to JSON #10

Open derekeder opened 11 years ago

derekeder commented 11 years ago

Currently the API returns XML by default, but you can get JSON by setting Accept: application/json in the header.

Is it possible to set this to JSON by default? Any thoughts @fkh?

fkh commented 11 years ago

Not sure, but @demory might know. For the quickest response, you should put this question to the helpful crowd on the OTP mailing list: https://groups.google.com/forum/#!forum/opentripplanner-dev

derekeder commented 11 years ago

@fkh roger that - will do. Thx!

derekeder commented 11 years ago

question posted: https://groups.google.com/forum/#!topic/opentripplanner-dev/zXWFvaFHNDo