Skip to content

feat: add multi-region endpoint resolution with self-heal regions registry#66

Merged
OMpawar-21 merged 2 commits into
betafrom
enhc/DX-7280
Jun 11, 2026
Merged

feat: add multi-region endpoint resolution with self-heal regions registry#66
OMpawar-21 merged 2 commits into
betafrom
enhc/DX-7280

Conversation

@OMpawar-21

Copy link
Copy Markdown
Contributor

Summary

  • Adds Endpoint.GetContentstackEndpoint(region, service) for resolving
    Contentstack service URLs across all 7 regions (NA, EU, AU, Azure-NA,
    Azure-EU, GCP-NA, GCP-EU) and 18 service keys
  • regions.json registry auto-downloads from CDN on first use and caches
    on disk — SDK self-heals if the file is missing, no setup required
  • Scripts/refresh-region.cs bundled in the NuGet package — placed in
    Scripts/ on first dotnet build, run anytime to pull latest regions
  • Utils.GetContentstackEndpoint(...) proxy added for convenience
  • Case-insensitive region alias support ("us", "AWS-NA", "azure_na")
  • omitHttps flag for SDK host configuration

Test plan

  • dotnet test --filter "FullyQualifiedName~EndpointTest" — 44 unit tests pass
  • dotnet run Scripts/refresh-region.cs from repo root — All bin dirs

@OMpawar-21 OMpawar-21 requested a review from a team as a code owner June 10, 2026 11:50
@OMpawar-21 OMpawar-21 marked this pull request as draft June 10, 2026 12:10
Comment thread Contentstack.Utils.Tests/EndpointTest.cs

@sunil-lakshman sunil-lakshman left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OMpawar-21 OMpawar-21 marked this pull request as ready for review June 11, 2026 11:00
@OMpawar-21 OMpawar-21 merged commit c238c67 into beta Jun 11, 2026
9 of 11 checks passed
@OMpawar-21 OMpawar-21 deleted the enhc/DX-7280 branch June 11, 2026 11:00
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.

2 participants