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

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

问题描述

听上去似乎很幼稚,但是当有人在论文中提到Web应用程序和Web API时,它们有何不同?它们与功能有何不同?

It sounds naive on hearing but how different are web application and Web API when someone mentions it in their paper? How different are they from their functionalities?

推荐答案

非常简短:Web应用程序是在浏览器中看到的网站,而Web api是在Web应用程序中使用的服务

Very short: web application, it's a web site, which you see in your browser, and web api, it's a service, which you use in a web application.

另请参见 ASP之间的差异.NET MVC和ASP.NET Web API :

Asp.Net MVC用于创建返回两个视图的Web应用程序和数据,但使用Asp.Net Web API创建完整的HTTP简单,简单的服务,只返回数据而不查看.

Asp.Net MVC is used to create web applications that returns both views and data but Asp.Net Web API is used to create full blown HTTP services with easy and simple way that returns only data not view.

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

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