API 应用程序和 Web 应用程序有什么区别? [英] What is the difference between an API App and a Web App?

查看:21
本文介绍了API 应用程序和 Web 应用程序有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在一直在阅读一些关于将 Web 应用程序和 API 应用程序部署到 Azure 的教程.但是,我仍然有点不确定您为什么要使用一个.

I've been reading a few tutorials now on deploying Web Apps and API Apps to Azure. However, I am still a little unsure as to why you would use one over another.

我可以使用 API 控制器创建一个新的 .NET 解决方案并将其部署为一个 Web 应用程序,那么为什么我会特别需要一个 API 应用程序呢?这些是否专门针对 ASP.NET Web API 进行了优化,而 Web 应用程序用于交付 HTML?

I can create a new .NET solution with API controllers and deploy this as a Web App, so why would I specifically require an API App? Are these optimized specifically for ASP.NET Web API, where as Web Apps are for delivering HTML?

推荐答案

更新Azure当前状态的答案,

Updating the answer to current state of Azure,

App Services 现在将所有移动、Api 和 Web 应用程序风格替换为一个单一的应用程序框架,其中所有功能都被翻转,以使应用程序类型更易于访问.目前所有的 Web、Mobile 和 Api Apps 统称为 App Services. 我们仍然为客户提供能够在图库中创建 Mobile App 和 Web App,但这基本上是解析为 App Service应用程序.

App Services now replaces all Mobile, Api and Web Apps flavors as a single app framework with all the functionality rolled over to make things more accessible across application types. Currently all of Web, Mobile and Api Apps are collectively called App Services. We still offer customer to be able to create a Mobile App and a Web App in the gallery but that is basically resolve into an App Service App.

https:///azure.microsoft.com/en-us/documentation/articles/app-service-api-apps-why-best-platform/

适用于 Web 应用的移动功能以及 Easy Tables 和 Easy API 等功能.API Cors 和 API 定义等 API 应用程序的功能现在也适用于 Web 应用程序.客户可以托管单个 Web 应用程序来充当任何移动服务或具有通过应用程序服务提供的所有功能的 API.

Features for Mobile work for Web App as well such as Easy Tables and Easy API. And features for API apps like API Cors and API definitions now work on web apps as well. A customer can host a single web app to act as any mobile service or an api with all the features offered through the app services.

我们还在预览版中推出了一项新服务,特别针对 API 应用程序,通过为您的 API 提供管理体验,基本上您可以控制生成尝试 API 页面、收集执行分析、限制等等.查看功能博客以了解有关 Azure API 管理功能的更多信息.是的,您可以将 API 作为应用服务应用托管,并与 API 管理挂钩.

We also have a new service in preview particularly targeting API Apps by offering a management experience for your APIs, Basically you can control the generate try API pages, gather execution analytics, throttle and much more. Check out the feature blog to learn more about the Azure API Management Features. And yes you can host the APIs as a App Service App and hook things up with API Management.

https://azure.microsoft.com/zh-CN/documentation/articles/api-management-get-started/

这篇关于API 应用程序和 Web 应用程序有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆