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

David-Sarah Hopwood david-sarah at jacaranda.org
Tue Feb 26 20:45:28 UTC 2013


On 26/02/13 13:38, kpneal at pobox.com wrote:
> On Mon, Feb 25, 2013 at 08:29:48PM -0800, Peter Secor wrote:
>> The WUI usually has a pretty good json representation of most screens, just tack on a query arg ?t=json to the WUI URL and see what you get. I used to use it a lot when running scripts to check node usage but it's also useful for scraping other node stats. 
> 
> 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.

It isn't clear that the separation of resources and representations in REST,
i.e. the fact that different representations don't have different URIs, is
actually a good idea. Certainly *many* sites and APIs don't follow that part.

-- 
David-Sarah Hopwood ⚥

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130226/cd72c32b/attachment.pgp>


More information about the tahoe-dev mailing list