Skip to content

Service URLs is an array, not a single URL #5305

@paulomorgado

Description

@paulomorgado

Type of issue

Other (describe below)

Description

The article shows this code:

var frontend = builder.AddProject<Projects.MyFrontend>("frontend")
                      .WithReference(basket)
                      .WithReference(catalog);

and this JSON configuration:

{
  "Services": {
    "basket": {
      "https": "https://10.2.3.4:8080", /* the https endpoint, requested via https://basket */
      "dashboard": "https://10.2.3.4:9999" /* the "dashboard" endpoint, requested via https://_dashboard.basket */
    }
  }
}

Shouldn't it be:

{
  "Services": {
    "basket": {
      "https": [
        "https://10.2.3.4:8080" /* the https endpoint, requested via https://basket */
      ]
      "dashboard": [
        "https://10.2.3.4:9999" /* the "dashboard" endpoint, requested via https://_dashboard.basket */
      ]
    }
  }
}

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/service-discovery/overview?source=docs#named-endpoints

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/service-discovery/overview.md

Document Version Independent Id

c250cb89-e0b4-c037-e4e0-edcec7c84eb8

Platform Id

6b53f397-f215-25e0-e019-2649ad7aa17b

Article author

@IEvangelist

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions