[tahoe-dev] Fwd: [tor-relays] [ANNOUNCE] check_tor.py: a Nagios check for Tor relays

Tony Arcieri tony.arcieri at gmail.com
Tue Feb 26 21:33:40 UTC 2013


On Tue, Feb 26, 2013 at 5:38 AM, <kpneal at pobox.com> wrote:

> The correct way to do this is to send an "Accept: application/json" header
> in the request. Don't change the url to specify the type of return data.
> The response should have the same mime type.
>
> This follows normal REST design patterns.


If you're talking about REST in the sense of the Fielding dissertation, you
might try adopting the term "Hypermedia" instead:
http://www.designinghypermediaapis.com/

That said, as far as what "REST" has been colluded to mean, Rails most
certainly allows a ".json" filename extension to select the
application/json Content-Type (of course it also honors the Accept header)

-- 
Tony Arcieri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130226/5dbadb59/attachment.html>


More information about the tahoe-dev mailing list