#2133 closed defect (was already fixed)

no JSON output for node status (GET /?t=json)

Reported by: joepie91 Owned by:
Priority: normal Milestone: eventually
Component: code-frontend-web Version: 1.10.0
Keywords: json welcome webapi docs Cc:
Launchpad Bug:

Description

According to the Web-API manual entry for GET /, "By adding "?t=json" to the URL, the node will return a JSON-formatted dictionary of stats values". I cannot reproduce this intended behaviour on my machine, and get a standard HTML page instead:

http://img.owely.com/screens/114413/original_owely20131207-18968-1y4lqx7.

I suspect this issue may have been introduced with the frontpage redesign.

Change History (7)

comment:1 Changed at 2013-12-07T04:19:08Z by daira

AFAIK there has never been a JSON version of the Welcome page.

comment:2 Changed at 2013-12-07T04:21:23Z by daira

  • Keywords json welcome webapi added
  • Milestone changed from undecided to eventually
  • Summary changed from JSON output for GET / broken to no JSON output for node status (GET /?t=json)

comment:3 Changed at 2013-12-07T04:22:37Z by daira

  • Keywords docs added

#1415 is tangentially related.

comment:4 Changed at 2013-12-07T11:07:43Z by joepie91

I feel that the ability to retrieve the Welcome page in JSON format (as documented) would be an important feature. In my particular usecase, I'm trying to implement storage grid monitoring/alerting - machine-readable connection status data would be essential for that. I'm reasonably sure that I'm not the only one with such a usecase.

comment:5 Changed at 2013-12-07T15:03:31Z by daira

I agree it would be a useful feature. I think the next step is to write (fuller) documentation for webapi.rst, maybe with an example of the JSON that should be output.

Last edited at 2013-12-07T15:04:00Z by daira (previous) (diff)

comment:6 Changed at 2016-08-23T16:19:14Z by meejah

This would be useful for integration-testing to answer the question "is this node ready to actually-work".

comment:7 Changed at 2020-12-09T14:46:48Z by exarkun

  • Resolution set to was already fixed
  • Status changed from new to closed

https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2476 added a JSON version of the welcome page.

Note: See TracTickets for help on using tickets.