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

查看:49
本文介绍了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 Apps 是用于提供 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,

应用服务现在将所有移动、Api 和 Web 应用风格替换为一个单一的应用框架,所有功能都经过滚动,使各种应用类型的内容更易于访问.目前所有的 Web、移动和 Api 应用统称为应用服务.我们仍然为客户提供能够在库中创建移动应用和 Web 应用的功能,但这基本上被解析为应用服务应用.

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 应用程序.客户可以托管单个网络应用以充当任何移动服务或具有应用服务提供的所有功能的 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/en-us/documentation/articles/api-management-get-started/

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

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