REST API - Use the "Accept: application/json" HTTP Header
When I make a request, I get a response in XML, but what I need is JSON. In the doc it is stated in order to get a JSON in return: Use the Accept: application/json HTTP Header. Where do I find the HTTP Header to put Accept: application/json inside? My guess is it is not suppose to be inside the URL-request, which looks like: http://localhost:8080/otp/routers/default/plan?fromPlace=52.5895,13.2836&toPlace=52.5461,13.3588&date=2017/04/04&time=12:00:00
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.