-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
remove API to lists all entities in a namespace? #3153
Comments
i think this is a good idea. all of the Read APIs should use streaming, never touching the controller's scala heap. plus, the list api can easily be implemented client-side, possibly with a more attractive user experience: the UI can begin rendering as soon as any one of the four sub-requests completes. |
better yet if you have a hand full of triggers, you don't need to fetch all your 1000 actions to get the trigger list. |
Would this change anything from an end-user perspective when calling |
|
|
The API currently supports a
GET
on/namespaces/_
which returns all the entities in a namespace. This is used inwsk list
for example to show actions, triggers, rules, and packages.The view supporting this API call is redundant with other views and takes up space in the database for the convenience of replacing 4 calls with 1. This view is also reduced in the controller which makes it harder to stream the response directly from the db to the client. Clients on the other can make 4 calls if needed, and this would provide a more consistent experience for using skip, limit per entity type (and count once that's added).
Thoughts?
The text was updated successfully, but these errors were encountered: