-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: SPM:DatabaseManager on loadAllSpoolsByQuery API Call #145
Comments
Hi @UnchartedBull, well you need to provide the mandatory fields, like this. Then you will receive the data
And this is definitely not a REST-API !!! It is just an interface between my plugin UI and the backend, nothing more. You can use the current endpoints, but "at your own risk" ;-) It is not stable, if I need to change it, i will do that (without a release note). It is planed to implement a public REST-API (or other API-Styles) for other plugin developers, but currently it is far away. I need to do a lot of other things in front of that (e.g. support of external database and migrate to a three-tier-layer-architecture, ....) Sorry, but I am closing this issue, because "it works as expected" and the feature is already on the roadmap. |
Well not the news I hoped for, but news 😄 Totally understandable though, let me know when there is something available / ready to test, as this is one of the most requested features in OctoDash now :) |
Hi @UnchartedBull, I created a wiki-page to start a discussion how the API could look like: Currently it is empty, but maybe you can type your requirements to it. |
Hi, sorry it took me sometime to get back to this. I added some stuff to the wiki page. I don't know whether that covers every use-case, but I think it should cover most of them. For OctoDash only the |
Hi,
I'm currently trying to integrate Spool Manager into OctoDash. I do seem to have hit a roadblock though. If I call the
loadAllSpoolsByQuery
endpoint without any body at all I receive just partial response without any spools:OctoPrint also shows an Error in the top right-hand corner. I don't seem to be able to find any docs about the API besides the code. From what I understood the method should work fine without any query at all, but I might be wrong here. I've also attached the octoprint.log, don't know if it's helpful or not :). Oh I'm also testing this on a virtual printer running in a docker container, I can create spools and stuff, so I assume that sqlite is working, but I don't know whether this has any other implications.
octoprint (2).log
I also think it would be great if there would a be a separate endpoint to just query the currently active spool (at least I wasn't able to find one), this should save a couple of database calls. And I think a little bit of documentation might be great since the endpoint naming doesn't seem to be very REST-like, which made it kind of hart to find the correct APIs, but that's just the icing on the cake :)
Thank you!
The text was updated successfully, but these errors were encountered: