-
Notifications
You must be signed in to change notification settings - Fork 214
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
[API]: Endpoint for retrieving all policies #1683
Comments
Some more input on this:
As the read journal would be very slow for doing a "retrieve all" search and afterwards applying the authorization in memory, this task also requires:
|
Seems reasonable to me. Our use case would be to generate a dropdown menu with all policies for ease of use on our UI, so filtering and sorting isn't really necessary (yet?). I can give it a try. I have little experience with Akka but I'm familiar with MongoDB. Do you have any suggestions on how to tackle this issue? My first option is to take a look at the things endpoint and base the implementation on it. |
Ok, sorting by policyId by default is sufficient for the start.
Yes, good idea. As policies have a more restrictive format than things I think we do not need a wildcard index (as we have for things). |
Provide an endpoint to retrieve all policies. (Get policies)
Desired API
Current workaround
Query MongoDB directly and retrieve all policies
The text was updated successfully, but these errors were encountered: