Pita/etherpad-lite — Issue #307: HTTP API listPads returns object, not array
Author: jhollinger
Created: 2012-01-03 03:01:59+00:00
State: open

The HTTP API has stated since 1.0 that listPads returns something like:

{code: 0, message:"ok", data: {padIDs: ["g.s8oes9dhwrvt0zif$test", "g.s8oes9dhwrvt0zif$test2"]}}

But from 1.0 to the present it has instead returned this:

{code: 0, message:"ok", data: {padIDs: {"g.s8oes9dhwrvt0zif$test":1, "g.s8oes9dhwrvt0zif$test2":1}}}

Which one is correct? IMO an array, like the Wiki page states, makes more sense.