Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Mismatch in printer profile API documentation and behaviour #1732
What were you doing?
I'm trying to use the printer profile API, but the current documentation seems to be inaccurate. I'd love to use the API as documented, if possible, for easier parsing.
The exact command used was
What did you expect to happen?
The documentation has an example response with an array of Profile-type objects:
What happened instead?
I get an object with the profiles as attributes: profiles.<profile id>
Branch & Commit or Version of OctoPrint
Version: 1.3.1 (rc/maintenance branch)
Browser and Version of Browser, Operating System running Browser
macOS Sierra 10.12.2 (16C67), curl 7.51.0 (x86_64-apple-darwin16.0) libcurl/7.51.0 SecureTransport zlib/1.2.8
Link to octoprint.log
I have read the FAQ.
Thanks for the heads-up. Sadly we'll have to go with what's implemented here already and adjust the docs accordingly instead of the other way around, since there are a couple of clients out there which depend on the API staying backwards compatible.
Will fix the docs.