prusa3d / Prusa-Link-Web

Prusa Web interface resources
GNU General Public License v3.0
117 stars 50 forks source link

Added new POST endpoint for start printing of file #342

Closed Majkluss closed 1 year ago

vorner commented 1 year ago

This seems a bit weird. There's no description of the body nor additional parameters, etc.

I'd assume not every post to that file's URL would start printing it immediately and that we want some kind of manuevaribility for future, being able to do other stuff with the file ‒ maybe preheat for parameters for the file, or order the right amount of filament from prusament.com…

Therefore, I'd expect something like {"command": "start_print", ...possible other parameters for the print, like ignore_wrong_filament: true} in the body.

Is that the intention and just forgotten to document, or was the intention of starting a print by sending whatever inside the post request?