turing-machines / BMC-Firmware

Turing-pi BMC firmware
http://turingpi.com
GNU General Public License v2.0
226 stars 29 forks source link

v2.x: API documentation issue? #157

Closed lintweaker closed 10 months ago

lintweaker commented 10 months ago

Describe the bug I just upgraded to BMC v2.05 and had to adjust my scripts to cope with the API changes. It looks like either API the documentation is not updated or the API is not.

To Reproduce Steps to reproduce the behavior: For powering on a node, the API docs calls for: /api/bmc?opt=power&type=set&node3=1

but this results in: {"response":[{"result":"Missing opt parameter"}]}

but what works is: /api/bmc?opt=set&type=power&node3=1

Expected behavior API documentation matches the implementation (or vice versa)

Versions bmc version= 2.05

svenrademakers commented 10 months ago

I've updated the documentation, thanks for reporting!