Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft committed May 24, 2024
1 parent 40fc7a5 commit 7df110b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions typespec-tests/tsp/server.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ using TypeSpec.Versioning;
title: "HttpbinServer",
})
@server(
"https://{domain}.{tld}",
"https://{domain}.{tld}{relative-path}",
"Httpbin endpoint",
{
@doc("second-level domain, use httpbin")
domain?: string = "httpbin",
domain: string = "httpbin",

@doc("top-level domain, use org")
tld?: string = "org",
tld: string = "org",

@doc("relative path segment, can be empty")
`relative-path`?: string;
}
)
namespace Cadl.Server {
Expand Down

0 comments on commit 7df110b

Please sign in to comment.