Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Changelog
5.0.4 - 2026-06-29
- Removed eager fetching of Matomo URL

5.0.3 - 08/06/2026
- Improved wording of authorization buttons and help text
- Cleaned up styling on input fields
Expand Down
10 changes: 5 additions & 5 deletions Specs/SpecGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ public function __construct(?PathResolver $specPathResolver = null, ?ArtifactWri
{
$this->specPathResolver = $specPathResolver ?? new PathResolver();
$this->artifactWriter = $artifactWriter ?? new ArtifactWriter();

// Set the constant for the current instance's URL
if (!defined('LOCAL_MATOMO_SERVER_URL')) {
define('LOCAL_MATOMO_SERVER_URL', SettingsPiwik::getPiwikUrl());
}
}

/**
Expand Down Expand Up @@ -77,6 +72,11 @@ public function generatePluginDoc(string $pluginName, string $format = 'json', s
*/
public function generateSpec(array $pluginNames, string $format = 'json', string $version = ApiReference::DEFAULT_SPEC_VERSION, bool $writeToFile = false): string
{
// Set the constant for the current instance's URL
if (!defined('LOCAL_MATOMO_SERVER_URL')) {
define('LOCAL_MATOMO_SERVER_URL', SettingsPiwik::getPiwikUrl());
}

BaseValidator::check('pluginNames', $pluginNames, [new NotEmpty()]);
$currentPluginDir = Manager::getInstance()::getPluginDirectory('ApiReference');

Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ApiReference",
"description": "Modern interactive API documentation for Matomo based on OpenAPI (Swagger). Explore endpoints, parameters, and responses directly in your browser. ",
"version": "5.0.3",
"version": "5.0.4",
"theme": false,
"keywords": [
"API",
Expand Down
Loading