Skip to content

Minor release: add Get-PiHoleApiEndpoint, completing API coverage - #149

Merged
mikemadeja merged 5 commits into
mainfrom
develop
Oct 29, 2026
Merged

mikemadeja merged 5 commits into
mainfrom
develop

Conversation

@mikemadeja

Copy link
Copy Markdown
Owner

Minor release (v1.2.0): develop → main.

Changes

The title contains "Minor release", so CreateRelease.yml bumps v1.1.2 → v1.2.0 instead of a patch.

🤖 Generated with Claude Code

mikemadeja and others added 5 commits October 24, 2026 08:52
Wraps GET /api/endpoints and returns one object per method and URI
(Method, Uri, Parameters) so the list can be filtered with Where-Object.
This completes API coverage: GET /docs only serves the browser HTML docs
and the deprecated /action/flush/arp alias is covered by
Invoke-PiHoleFlushNetwork, so both are deliberately left unwrapped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orts

feat: add Get-PiHoleApiEndpoint, completing API coverage
SonarCloud's develop quality gate failed on 5.1% duplicated new code: the
login / build request / call / logout block in Get-PiHoleApiEndpoint and
Get-PiHoleAuthApp is copied from about 17 other functions. Move it into a
private Invoke-PiHoleApiRequest helper and use it from both new functions.
Errors still propagate to each caller's own catch, so messages are
unchanged apart from the friendly-message conversion now applying to the
final 401.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
refactor: share request boilerplate to fix SonarCloud duplication gate
@sonarqubecloud

Copy link
Copy Markdown

@mikemadeja
mikemadeja merged commit ee48560 into main Oct 29, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant