[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2476: add JSON encoding of information from Welcome page
Tahoe-LAFS
trac at tahoe-lafs.org
Thu Jan 12 22:19:15 UTC 2017
#2476: add JSON encoding of information from Welcome page
-----------------------------------+---------------------------------
Reporter: daira | Owner: warner
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: code-frontend-web | Version: 1.10.1
Resolution: | Keywords: webapi json welcome
Launchpad Bug: |
-----------------------------------+---------------------------------
Comment (by dawuud):
ok i've made some progress here:
https://github.com/david415/tahoe-lafs/tree/2476.add_json_welcome_page.0
it works... output json with a list of summaries for connections to
introducers and storage servers:
```
{
"introducers": {
"statuses": [
"Connected to tcp:127.0.0.1:33791 via tcp"
]
},
"servers": {
"statuses": [
"Connected to tcp:127.0.0.1:41421 via tcp"
]
}
}
```
i can change the format but i did it like this because it was easiest. For
each storage server and introducer we get a `ConnectionStatus` object
which contains a summary string. If we want the data in a different format
then I can make some changes.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2476#comment:1>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list