@server(
"{endpoint}/client/structure/{client}",
"",
{
@doc("Need to be set as 'http://localhost:3000' in client.")
endpoint: url,
@doc("Need to be set as 'default', 'multi-client', 'renamed-operation', 'two-operation-group' in client.")
client: ClientType,
}
)
@service({
title: "MultiClient",
version: "1.0.0",
})
namespace Client.Structure.Service;
namespace Baz {
interface Foo {
#suppress "@azure-tools/cadl-ranch-expect/missing-scenario" "This is by design those operations get defined as scenarios in the client"
@route("/seven")
@post
seven(): void;
}
}
In the Baz, there is no operations but there is a sub client Foo. And in the service there is a global parameter client.
spec:
In the
Baz
, there is no operations but there is a sub clientFoo
. And in the service there is a global parameterclient
.Actual:
Expected: