anacrolix / confluence

Torrent client as a HTTP service
Mozilla Public License 2.0
237 stars 32 forks source link

Make /metainfo return JSON too #18

Closed boramalper closed 4 years ago

boramalper commented 4 years ago

I think to allow easier processing on client-side, /info endpoint shall return JSON-ified version of info dictionaries.

Accept header can be used to control the format (JSON or bencoded), or a wholly new endpoint can be conceived.

anacrolix commented 4 years ago

That's an excellent idea. I think I'd prefer to specifically match the JSON mime-type from the Accept header.