Skip to content

Commit

Permalink
Fixed incorrect data plane host. (#31593)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Zaslonov <alzaslon@microsoft.com>
  • Loading branch information
azaslonov and alzaslon authored Nov 19, 2024
1 parent 9f7cb94 commit d477c7c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"responses": {
"202": {
"headers": {
"Operation-Location": "https://contoso.data.azure-apicenter.net/.../definitions/default/operations/00000000-0000-0000-0000-000000000001"
"Operation-Location": "https://contoso.data.eastus.azure-apicenter.ms/.../definitions/default/operations/00000000-0000-0000-0000-000000000001"
},
"body": {
"status": "Succeeded",
Expand Down
5 changes: 4 additions & 1 deletion specification/apicenter/ApiCenter.DataApi/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ using Azure.Core;
title: "Azure API Center Data API",
})
@server(
"https://{serviceName}.data.azure-apicenter.net",
"https://{serviceName}.data.{region}.azure-apicenter.ms",
"Data API service endpoint",
{
@doc("Region-unique API Center service name")
serviceName: string,

@doc("Region name")
region: string,
}
)
@versioned(ApiCenter.DataApi.Versions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"https"
],
"x-ms-parameterized-host": {
"hostTemplate": "https://{serviceName}.data.azure-apicenter.net",
"hostTemplate": "https://{serviceName}.data.{region}.azure-apicenter.ms",
"useSchemePrefix": false,
"parameters": [
{
Expand All @@ -23,6 +23,13 @@
"description": "Region-unique API Center service name",
"required": true,
"type": "string"
},
{
"name": "region",
"in": "path",
"description": "Region name",
"required": true,
"type": "string"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"responses": {
"202": {
"headers": {
"Operation-Location": "https://contoso.data.azure-apicenter.net/.../definitions/default/operations/00000000-0000-0000-0000-000000000001"
"Operation-Location": "https://contoso.data.eastus.azure-apicenter.ms/.../definitions/default/operations/00000000-0000-0000-0000-000000000001"
},
"body": {
"status": "Succeeded",
Expand Down

0 comments on commit d477c7c

Please sign in to comment.