You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if the API would always returns XML or JSON (depending on the format in the query). Right now it might return XML or JSON when the query is successful but might return plain text when the station isn't found. Other errors might return the correct format.
It would be nice if the API would always returns XML or JSON (depending on the format in the query). Right now it might return XML or JSON when the query is successful but might return plain text when the station isn't found. Other errors might return the correct format.
Take http://api.irail.be/connections/?to=heaven&from=hell&format=xml for example, which returns plain text. This means the client implementation needs to call a different parser if the XML or JSON parser can't parse the result.
It does do the right thing when you send a broken query like http://api.irail.be/connections/?format=xml though.
The text was updated successfully, but these errors were encountered: