@Chardonneaur opened this Issue on November 28th 2022

Hi,

On the API page within Matomo, there are many useful example requests, but for some reasons, many are missing whereas they are extremely useful, for example Annotations.add

@peterhashair commented on November 28th 2022 Contributor

@Chardonneaur thanks for reporting this, I guess we missing some of the documentation there.

@sgiehl commented on November 30th 2022 Member

@Chardonneaur All examples on the page that are currently displayed are kind of generated automatically, based on the parameter names.
This works without problems for most reporting methods. But for all API methods not working with the standard set of parameters, this doesn't work and would need some manually added examples or similar.
See https://github.com/matomo-org/matomo/blob/2fcd5e55c613a9c6ac45c5e12e8f99331241ab23/core/API/DocumentationGenerator.php#L210-L321

Powered by GitHub Issue Mirror