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

[Feature Request] Need Count of total groups in the response of get all groups api #752

Open
App-developer-269 opened this issue Jan 21, 2025 · 4 comments
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request patron:PLUS

Comments

@App-developer-269
Copy link

App-developer-269 commented Jan 21, 2025

Here in the below api, add {Count :10} field in the response
https://waha.devlike.pro/docs/how-to/groups/#get-all-groups

patron:PLUS

@App-developer-269 App-developer-269 changed the title Count of total groups in the response of get all groups api [Feature Request] Count of total groups in the response of get all groups api Jan 21, 2025
@App-developer-269 App-developer-269 changed the title [Feature Request] Count of total groups in the response of get all groups api [Feature Request] Need Count of total groups in the response of get all groups api Jan 21, 2025
@devlikepro devlikepro added enhancement New feature or request engine:ALL Related to all engines or basic mechanisms labels Jan 21, 2025
@devlikepro
Copy link
Contributor

devlikepro commented Jan 21, 2025

Hi! Why do you need it, could you explain? I mean besides showing "total" somewhere on UI

patron:PRO

@App-developer-269
Copy link
Author

App-developer-269 commented Jan 21, 2025

I need this for two use case
1.showing "total" somewhere on UI
2. I am rendering group id's on table, i need the total count for pagination.

patron:PLUS

@devlikepro
Copy link
Contributor

devlikepro commented Jan 22, 2025

If we add "GET /api/groups/total" is it fine? I guess right now it returns an array and it's not possible to add key there :(

patron:PRO

@App-developer-269
Copy link
Author

App-developer-269 commented Jan 22, 2025

@devlikepro
It is totally fine to add "GET /api/groups/total".

patron:PLUS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine:ALL Related to all engines or basic mechanisms enhancement New feature or request patron:PLUS
Projects
None yet
Development

No branches or pull requests

2 participants