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

Endpoint for device search #3

Open
6 of 10 tasks
kengu opened this issue Jan 28, 2021 · 0 comments
Open
6 of 10 tasks

Endpoint for device search #3

kengu opened this issue Jan 28, 2021 · 0 comments

Comments

@kengu
Copy link
Member

kengu commented Jan 28, 2021

GDPR requires us to limit access to devices that have positions.

As-is

Endpoint GET api/devices returns all known devices regardless of role-claim

To-be

  • Restrict endpoint GET api/devices to role-claim admin
  • Add endpoint OPTIONS api/devices/search restricted to default role-claim
  • Returns header x-search-options: max-radius x; (in kilometers with desimals)
  • Add endpoint GET api/devices/search restricted to default role-claim
  • Supports search for devices with position within given radius from one search point (circle)
  • Supports search for devices with position within given radius from two search points (ellipsis)
  • Supports search for devices allocated to given operation
  • Supports search for devices allocated to given unit
  • Supports search for devices allocated to given personnel
  • Support OR and AND between operations above

References

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