Introduce mechanism to hide API modules and/or actions from the API listing page #6042
Labels
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Task
Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Milestone
The goal of this ticket is to provide an easy way for plugin developers to hide some API modules and actions from the API listing page.
The API listing page is the page that is available via top user Menu > API link.
Tasks:
Add new annotations:
@hideExceptForSuperUser
- hides the API module or action, but show it to the Super User onlymodulesToHide
at: https://github.com/piwik/piwik/blob/master/core/API/DocumentationGenerator.php#L18-18Note:
@ignore
or a given API function. When they are tagged this way, the API is not callable via the Web API endpoint and is not displayed in the API listing page.What do you think?
The text was updated successfully, but these errors were encountered: