Please dd a "Get Count" call to the API for DataSets and other resources
I'm checking out the Domo APIs to see about automating some of our admin and audit tasks. So far, it looks promising and pretty straightforward. I've noticed that there are a lot of 'catalog' calls to retrieve resource definitions, such as
There's a limit of 50 definitions per result for this service. To get the full catalog, you have to loop, advance the offset, and exit the loop when you don't get any more results. That works okay, but you always have to over-interrogate the service and you can't estimate how far you are into the task in advance. Progress is nice to know if you're in a context where you want to display a thermometer, etc. It would be a nice refinement to provide a "get count" service, something like this:
All it needs to return is the count of DataSets, like 97 or what have you. Formatted as you like.
The same suggestion applies to any of the similar catalog API calls. The endpoints might look like this (or some better way that you devise):
"Get count" services also make for a light-weight way of checking how your installation looks and how close it is to any off-line catalog you've created.
Another idea is to offer a service that returns an array of resource IDs. For example:
Then you extract the elements, have your count, and can take it from there.
- 10.7K All Categories
- 13 Getting Started in the Community
- 41 Beastmode & Analytics
- 2.1K Data Platform & Data Science
- 59 Domo Everywhere
- 2.7K Charting
- 2.5K Ideas Exchange
- 1.3K Connectors
- 362 Workbench
- 303 Use Cases & Best Practices
- 503 APIs
- 120 Apps
- 48 News
- 753 Onboarding
- 1.2K 日本支部
- Private Company Board