GeoNet / fdsn

FDSN Web Services
MIT License
17 stars 15 forks source link

optional format parameter for station service #36

Closed gclitheroe closed 7 years ago

gclitheroe commented 7 years ago

Hi Howard,

obspy (a common FDSN client) always adds &format=xml to the station query URL e.g.,

 curl "http://beta-service.geonet.org.nz/fdsnws/station/1/query?location=20&station=A*&format=xml"

The format parameter is optional to implement for the spec and the default format is xml (so your implementation is correct). Please could you allow format=xml as an optional parameter and return a 401 for format=text? This will let obspy work (then Nat can do more testing and a demo).

After that is fixed Nat might want the text output implementing as well?

Thanks, Geoff

nbalfour commented 7 years ago

Yes, I would like both the text and xml implementation