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

Scan labels to change location #64

Open
rs-development opened this issue Jul 11, 2019 · 4 comments
Open

Scan labels to change location #64

rs-development opened this issue Jul 11, 2019 · 4 comments

Comments

@rs-development
Copy link

I would love to have a feature of scanning labels to change storage location.

Do you think about implementing a API or similar, i could do the client side implementation.

@jbtronics
Copy link
Member

Implementing an API for the Part-DB version in this repo is difficult (you would have to implement every endpoint manually, and the auth system can not really handle auth tokens).

However I am working on a completly new Part-DB version based on symfony4 (see https://github.com/Part-DB/Part-DB-symfony for repo). Because it uses symfony and doctrine, it should be very easy to implement API Platform (https://api-platform.com/), which allows to expose the models of the database via powerful standardized APIs (like REST or GraphQL).

If you like i can try to implement a simple API using API Platform that could be used for external applications. But please mind that the symfony Part-DB version is far from being complete (the internal models used for the API should work though), and i dont know how stable it is (you can use it in parallel to the old Part-DB version on the same Database)

@rs-development
Copy link
Author

Okay, then i am maybe trying around with client itself a bit and i will make a simple docker instance which takes the API requests from the client and directly modifies the database.

If it works and proves to be useful we can take a lot look how the API developed and how to integrate it into the symphony version

@rs-development
Copy link
Author

So i have implemented a go server application listening for http requests and i am on the android app right now. While i tried to create labels i recognised that i cannot create labels with the dev branch. There is no such option.

What are you running on the demo site?

@rs-development
Copy link
Author

And i also recognised, or lets say the app, that the storage location barcodes are of type CODE39 and not EAN8 like the parts. Maybe change that in the barcode selection field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants