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

RFID check with individual location check #22

Open
frezik opened this issue Jun 25, 2019 · 1 comment
Open

RFID check with individual location check #22

frezik opened this issue Jun 25, 2019 · 1 comment

Comments

@frezik
Copy link
Contributor

frezik commented Jun 25, 2019

The current RFID check only says if the given key is available or not. We need a call that can tell if an individual scanner should allow the given user. For instance, if the fob holder is allowed in the office, or turn on the laser cutter, etc.

The route is:

/v1/rfid/location/:rfid/:location

Tasks:

  • Add a description to the openapi doc
  • Add the route to the router
  • Add a new table for locations
  • Add a new table that relates locations to the RFID tag that is allowed to use the location
  • Add a method to the DB interface to check if the RFID tag is allowed to use the location
  • Implement that method in both PG and Mock databases
  • Implement the route
  • Unit tests for the route (with Mock database) and directly against the PG database
@frezik
Copy link
Contributor Author

frezik commented Jul 25, 2019

Also, make sure the entry log page is updated to show the location.

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

No branches or pull requests

1 participant