Fruit Project 3rd episode-asp.net Web API Development Primer

Source: Internet
Author: User

App backend development, you can use ASP. NET WebService technology.

There is also a bit of a heavyweight called WCF, can also be used to do app background development.

You can now use the ASP. NET Web API to develop the app backend.

Official definition of the ASP. NET Web API:

The ASP. NET Web API is a framework for this makes it easy-to-build HTTP services that reach a broad range of clients, including BR Owsers and mobile devices. The ASP. Ideal platform for building RESTful applications on the. NET Framework.

It seems that this is a framework specifically designed to develop a server-side interface for various client calls. Client can make iOS, ANDROID,WP, browser ...

The official introduction to development tutorial:

Http://www.asp.net/web-api/overview/getting-started-with-aspnet-web-api/tutorial-your-first-web-api

It is quite convenient to create model to store data, HTTP response data will be serialized in JSON or XML, or other format.

"Moreover, the client can indicate which format it wants by setting the ' Accept header ' in the HTTP request message." That means the customer End requests can also specify the return data format.

ASP. NET WEB API deployment

First, in VS inside with publish function deployment

Second, the publishing method can be selected as file system, which will be published in the folder you selected, and then you can establish a Web site to IIS, the path to the folder. You can also set up a Web site in local IIS first, or you can select a local site when publishing.

Three, you may encounter an error as follows

WORKAROUND: Program-Accessories-Right-click Command Prompt-run as administrator-run "%windir%\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe-i" at the command line

Deployment success:

OK, now that the browser can access it, the app is sure to do the same.

Background development is so easy to get started with. can do business functions. Concrete framework technology is available for further study.

The app backstage can contact me ah ....

:)

Fruit Project 3rd episode-asp.net Web API Development Primer

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.