Skip to content

Fix/clarify services filter by url docs - #1616

Open
vedantikapatil wants to merge 2 commits into
3scale:masterfrom
vedantikapatil:fix/clarify-services-filter-by-url-docs
Open

vedantikapatil wants to merge 2 commits into
3scale:masterfrom
vedantikapatil:fix/clarify-services-filter-by-url-docs

Conversation

@vedantikapatil

Copy link
Copy Markdown
  1. Example lines now say public base URL instead of backend endpoint, with an explicit sentence that it is not matched against the API backend. This is the reported issue.
  2. Added that the match is on the host name only — no scheme, port, or path — and called out that a scheme-prefixed regex yields an empty config. This is the latent trap.
  3. Wrapped the example in a fenced code block. Previously those were bare lines, so Markdown collapsed all five into one run-on paragraph. The fence also stops GFM from autolinking the example URLs — which is why markdown-lint-check-config.json needed ignorePatterns for .foo/.bar in the first place.

Vedantika Patil and others added 2 commits November 30, 2026 13:11
The example contradicted the prose above it: the text said the filter
matches the public base URL, while every example line was labelled
"backend endpoint". The filter is applied by Service:match_host, which
matches against proxy.hosts -- the gateway's own hostnames -- and never
against the API backend address.

The example also prefixed the regexp with a scheme (http://). Since
hosts holds bare hostnames, such a filter matches nothing and leaves
APIcast with an empty configuration, so the documented example could
not work as written. Document the hostname-only matching explicitly
and warn about the scheme.

Also wrap the example in a code block; it previously rendered as a
single run-on paragraph.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The example contradicted the prose above it: the text said the filter
matches the public base URL, while every example line was labelled
"backend endpoint". The filter is applied by Service:match_host, which
matches against proxy.hosts -- the gateway's own hostnames -- and never
against the API backend address.

The example also prefixed the regexp with a scheme (http://). Since
hosts holds bare hostnames, such a filter matches nothing and leaves
APIcast with an empty configuration, so the documented example could
not work as written. Document the hostname-only matching explicitly
and warn about the scheme.

Also wrap the example in a code block; it previously rendered as a
single run-on paragraph.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vedantikapatil
vedantikapatil requested review from a team as code owners November 30, 2026 08:24
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