foosel/OctoPrint — pull request #131 by richardjm (2013-05-18 17:55:56+00:00)
Title: Devel

This is something that I believe solves https://github.com/foosel/OctoPrint/issues/124

There is a new endpoint at
octoprint/api/load
taking
apikey - from settings
print - true, if you want it to directly print
file - gcode file to upload/load and maybe print

e.g.
curl "http://192.168.0.7:5000/ajax/api/load?apikey=D96FA6A216CB44F78705D4506689D0EC" -F "gcode_file=@test.gcode"