Activity log for bug #1596071

Date Who What changed Old value New value Message
2016-06-24 19:23:30 David Britton bug added bug
2016-06-24 19:23:40 David Britton bug added subscriber Landscape
2016-06-24 19:26:03 David Britton description What I have right now is this: https://godoc.org/github.com/juju/juju/apiserver/ Which at least documents what is there technically and is quite complete, however it doesn't say how websockets should be used, what responses the api gives, what the methods actually do (typically one sentence that repeats the method name is all that is there), no examples of usage in a programming language (javascript, for instance) are given, etc. Take this one example: https://godoc.org/github.com/juju/juju/apiserver/action#ActionAPI.RunOnAllMachines This method was actually changed in juju2 to be asynchronous, the return is very similar to what was in juju1, but the actions were just... not finished (would be great to note that in the docs). Leaving that aside though, the doc merely says: "RunOnAllMachines attempts to run the specified command on all the machines." Which is not enough to understand what is returned, how I can use it, what inputs are available (those are hidden behind links that are equally terse) what the call structure would like like over the api, not to mention that it's async and data needs to be polled to get results. I'm humbly requesting that we take some time to expand the API docs and write them from a user perspective calling the api through websockets. Thanks! What I have right now is this: https://godoc.org/github.com/juju/juju/apiserver/ Which at least documents what is there technically and is quite complete, however it doesn't say how websockets should be used, what responses the api gives, what the methods actually do (typically one sentence that repeats the method name is all that is there), no examples of usage in a programming language (javascript, for instance) are given, etc. Take this one example: https://godoc.org/github.com/juju/juju/apiserver/action#ActionAPI.RunOnAllMachines This method was actually changed in juju2 to be asynchronous, the return is very similar to what was in juju1, but the actions were just... not finished, the doc merely says: "RunOnAllMachines attempts to run the specified command on all the machines." Which is not enough to understand what is returned, how I can use it, what inputs are available (those are hidden behind links that are equally terse) what the call structure would be like, and of course that it's async and data needs to be polled to get results (and how to actually do that). I'm humbly requesting that we take some time to expand the API docs and write them from a user perspective calling the api through websockets. Thanks!
2016-06-25 14:00:56 Dominique Poulain bug added subscriber Dominique Poulain
2016-07-01 08:21:41 Cheryl Jennings juju-core: status New Triaged
2016-07-01 08:21:44 Cheryl Jennings juju-core: importance Undecided Medium
2016-07-01 08:21:59 Cheryl Jennings tags landscape api docs landscape usability
2016-08-23 04:40:05 Curtis Hovey affects juju-core juju
2017-11-07 14:26:54 Anastasia tags api docs landscape usability api docs helptext landscape usability
2022-11-03 15:31:56 Canonical Juju QA Bot juju: importance Medium Low
2022-11-03 15:31:58 Canonical Juju QA Bot tags api docs helptext landscape usability api docs expirebugs-bot helptext landscape usability