Home  >  Article  >  Database  >  【ASP.NET Web API教程】1.1 第一个ASP.NET Web API

【ASP.NET Web API教程】1.1 第一个ASP.NET Web API

WBOY
WBOYOriginal
2016-06-07 17:56:321189browse

Your First ASP.NET Web API (C#) 第一个ASP.NET Web API(C#) By Mike Wasson|January 21, 2012 作者:Mike Wasson | 日期:2012-1-21 本文引自: HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expo

Your First ASP.NET Web API (C#)
第一个ASP.NET Web API(C#)

By Mike Wasson|January 21, 2012
作者:Mike Wasson | 日期:2012-1-21

本文引自:

HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. HTTP is simple, flexible, and ubiquitous. Almost any platform that you can think of has an HTTP library, so HTTP services can reach a broad range of clients, including browsers, mobile devices, and traditional desktop applications.
HTTP不仅服务于web页面。它也是建立暴露服务与数据的API(应用程序编程接口)的功能强大的平台。HTTP简单、灵活且无处不在。几乎你所能想到的任何平台都有一个HTTP库,因此,HTTP服务能够到达范围广泛的客户端,虚拟主机,包括浏览器、移动设备、以及传统的桌面应用程序。

ASP.NET Web API is a framework for building web APIs on top of the .NET Framework. In this tutorial, you will use ASP.NET Web API to create a web API that returns a list of products. The front-end web page uses jQuery to display the results.
ASP.NET Web API是一个用来在.NET框架上建立web API的框架。在本教程中,香港服务器租用,你将运用ASP.NET Web API来创建一个返回产品列表的web API。前端web页面使用jQuery来显示其结果(如图1所示)。

WebAPI1-1

图1. 应用程序的web页面

,香港虚拟主机
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn