想知道如何在 API 基本路径中包含占位符/变量,您会看到在 azure devops 中使用的类似内容,例如:https://dev.azure.com/{company-name}/. 您将如何设置您的 API 以获取基本路径开始的上下文。
我想要实现的是让我的 API 具有执行 API 调用的帐户的上下文,而不必成为 API 请求正文的一部分。我的 API 的格式是https://some-company.com/{account}/_apis/some-api/controller/.