Cris Acosta asked
wkw replied
Example:
Project Name: Foo
Table Name: Bar
View Name: Bar
/api/v1/db/data/{orgs}/{projectName}/{tableName}/groupby
```bash
curl --request GET \
–url ‘http://localhost:8080/api/v1/db/data/noco/Foo/Bar/groupby?column_name=Title’ \
–header ‘xc-auth: ’
```
/api/v1/db/data/{orgs}/{projectName}/{tableName}/views/{viewName}/groupby
```bash
curl --request GET \
–url ‘http://localhost:8080/api/v1/db/data/noco/Foo/Bar/views/Bar/groupby?column_name=Title’ \
–header ‘xc-auth: ’
```
Result:
```bash
{“list”:[{“count”:2,“Title”:“A”},{“count”:1,“Title”:“B”},{“count”:1,“Title”:“C”}],“pageInfo”:{“totalRows”:4,“page”:1,“pageSize”:25,“isFirstPage”:true,“isLastPage”:true}}
```
Cris Acosta replied