Verify Process to upload gcode model to server
I am planning to use this api call
http://localhost:3344/printer/model/<slug>?a=upload&sess=<session key>&name=<file name>&group=<groupname>
to send sliced gcode directly to the printer from my slicer. I'm guessing I need to open a WebSocket as well in order to get the SessionId and I'll need to keep that socket open during the entire process. One question I had was can I use the REST Api to initiate that socket like other WS commands or do I have to specifically open a valid WebSocket connection. I'm assuming yes.
Thanks for a killer product, looking forward to getting my code working to upload from my slicer.
Comments
https://www.repetier-server.com/using-simplify-3d-repetier-server/
showing how to upload a file using curl. Key is to send api-key in header so no session is required.