Skip to content
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

Expose label print API #391

Open
jimbolimbo3 opened this issue May 30, 2024 · 1 comment
Open

Expose label print API #391

jimbolimbo3 opened this issue May 30, 2024 · 1 comment
Labels
Feature Request New feature or request

Comments

@jimbolimbo3
Copy link

I'd like to get the QR code and the descriptions using an API, Since it can be useful for external printing solution, like
https://github.com/NaitLee/Cat-Printer , and other OPOS/POS printer solution.

@jimbolimbo3 jimbolimbo3 added the Feature Request New feature or request label May 30, 2024
@Donkie
Copy link
Owner

Donkie commented Jun 6, 2024

Spoolmans API is already completely open. This is the same API that the web client uses. You can access the documentation at your local installation: http://spoolmanip:port/api/v1/redoc

For example, to get info about a spool you can do a HTTP GET: http://spoolmanip:port/api/v1/spool/<spool_id>

The QR code is entirely generated on the client side in your browser in the web client, so no API can provide that for you at this point. But if you find some other utility to generate QR codes on the fly, the QR codes simply contain the spool ID formatted using this format: web+spoolman:s-<spool_id>

Hope this solves your needs :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants