rest - "add rest api client"我无法添加我的其余 api

标签 rest azure visual-studio-2017

在 vs2017 中,我通过选择“Web Api”并选中“MVC”和“Web Api”创建了一个 Asp.Net Web 应用程序。

我添加了“Ado.net 实体数据模型”,选择“Ef Designer from Database”并添加了我的表。

我构建了项目,右键单击 Controller --> 添加 Controller “带有操作的 Web api 2 Controller ,使用 Entity Framework ”和模型类:Contact

然后我添加了 swagger。

将其发布到 Azure 并通过 Swagger 进行测试。一切正常。

当我创建客户端应用程序、添加 REST API 客户端并单击“选择 Azure Assets ”时,仅显示几个应用程序,而我的 Azure 应用程序未显示。

应用程序需要在此选择框中显示什么?

最佳答案

only a few apps are shown and my azure app is not showing.

Azure Assets 窗口中将仅显示 Azure API 应用程序。从 Visual Studio 创建 Azure Web App 时,需要选择 API App 作为应用类型。

enter image description here

如果您已在 Azure 上创建应用程序,则需要从 Azure 门户设置 API 定义位置。之后,您将在 Azure Assets 窗口中看到 API 应用程序。

enter image description here

关于rest - "add rest api client"我无法添加我的其余 api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45775628/

相关文章:

javascript - AngularJS - ng-model 未选择任何选择选项 - 无法访问数据

azure - Windows Azure 存储表无法连接,但 blob 正常

Azure 应用程序网关 API 管理探针无法连接到后端

visual-c++ - 用循环优化除以零 VC++ 2015

c# - 帮助解决简单的 restful post 问题

Java 休息 : @GET and @PUT at the same path?

java - 如何在 Spring 后端获取可变 HTML 表单值 (POST)

Azure 数据工厂文件创建

kubernetes - Aks : Can we use Azure Dev Spaces to deploy Release build of Web app to Azure Kubernetes

css - @supports 不会在 Visual Studio LESS 文件中转换