ASP.NET Web API: Build RESTful web applications and services by Joydip Kanjilal

By Joydip Kanjilal

The ASP.NET internet API used to be designed from the floor as much as meet the necessity of builders who are looking to construct HTTP/RESTful providers. ASP.NET net API is an HTTP carrier that makes use of HTTP because the software protocol and will go back facts according to the information layout asked by means of the customer. it's a light-weight web-based structure that gives an easy-to-use set of default ideas whereas offering a deep extensibility infrastructure to satisfy the calls for of any state of affairs utilizing HTTP. This publication is a step by step, functional instructional with an easy method of assist you construct RESTful net functions and internet API companies in response to the .NET framework speedy and successfully. This e-book presents entire insurance of RESTful companies and the ASP.NET net API in a lucid language with lots of hands-on code examples. The publication begins with an outline of REST-based structure and WCF. It then explores the hot positive factors in ASP.NET 4.5 and introduces you to the recent thoughts within the ASP.NET net API. There also are ample code examples all through those sections that will help you study successfully. you'll then how one can paintings with WCF REST-based providers and the ASP.NET net API and the way to devour these prone utilizing a number of consumers similar to ASP.NET, ASP.NET MVC, WPF, and Silverlight. within the moment 1/2 this booklet, we speak about the extra complex ideas of the ASP.NET internet API, top practices, and asynchronous programming thoughts and the way it may be carried out in C# 5.The most vital factor you are going to take domestic from interpreting this publication is a operating wisdom on RESTful providers, their structure, tips to construct them, and in addition easy methods to eat them with lots of assistance and strategies to raised make the most of this know-how.

Show description

Read Online or Download ASP.NET Web API: Build RESTful web applications and services on the .NET framework PDF

Best c# books

Professional Windows Workflow Foundation

* home windows Workflow beginning (Windows WF) permits builders to construct process-driven and workflow-centric functions * starts off with an advent to home windows WF, explains why it used to be built by way of Microsoft, after which is going directly to study how builders will use it in real-world situations * Discusses workflow improvement in visible Studio, tips to expand the framework with customized code, and the way the framework performs into different Microsoft applied sciences (such as place of work and SharePoint) * includes a case learn in accordance with a fictitious enterprise challenge that illustrates particular software program layout matters and issues coated within the e-book * Addresses home windows WF elements, extensibility, workflow webhosting, runtime providers, debugging workflows, and the way home windows WF works with net companies, ASP.

C# : your visual blueprint for building .NET applications

Each one step during this publication is displayed with callouts that will help you see precisely the place the motion occurs at the reveal. This ebook covers over a hundred initiatives, together with utilizing attributes, operators, and sessions; documenting code with XML, utilizing arrays, construction varieties, programming net companies, utilizing home windows designers and macros, troubleshooting, and enhancing.

C# Deconstructed Discover How C# Works on the .Net Framework

The elemental operational layout of a working laptop or computer process is termed its structure. John von Neumann, a pioneer in desktop layout, is credited with the structure of such a lot desktops in use at the present time. a standard von Neumann procedure has 3 significant elements: the relevant processing unit (CPU), or microprocessor actual reminiscence and input/output(I/O).

Pro WCF 4, 2nd Edition: Practical Microsoft SOA Implementation

Seasoned WCF four. zero: functional Microsoft SOA Implementation is a whole consultant to home windows verbal exchange starting place from the service-oriented structure (SOA) standpoint, displaying you why WCF is critical to service-oriented structure and improvement. This ebook presents deep perception into the performance of WCF, which shipped with .

Additional info for ASP.NET Web API: Build RESTful web applications and services on the .NET framework

Example text

The endpoints enable the clients or the service consumers to access the WCF service. There are two templates from which you can choose to create the WCF services: the Visual Studio 2013 WCF service library template and the Visual Studio service application template. Let's first use the Visual Studio WCF service library template to create a WCF service. To do this, follow these steps: Open Visual Studio 2013 IDENavigate to File | New | ProjectSelect WCF Service Application from the list of templates displayed, as shown in the following screenshot:Creating a WCF Service Application Project Provide a name for your project, and click on OK to save.

UriTemplate is a class that represents a URI template. UriTemplate is a URI string that contains variables enclosed by braces ({, }). Note that the UriTemplate property is specified on the WebGet and WebInvoke attributes that we used earlier to identify an employee resource. The following code snippet illustrates how UriTemplate is used: [WebGet(UriTemplate = "RetrieveUserDetails/{userCode}/{projectCode}")] public string RetrieveUserDetails(string userCode, string projectCode) { } The following table lists the important HTTP methods and their uses: Method Description GET This is used to request for a representation of a specific resource PUT This is used to create or update a resource with a specific representation DELETE This is used to delete a specific resource POST This is used to submit data that is to be processed by a particular resource HEAD This is similar to GET, but it retrieves only the headers The HTTP protocol also defines a list of standard status codes that are used to specify the result of processing of a particular request.

However, Packt Publishing cannot guarantee the accuracy of this information. First published: December 2013 Production Reference: 1121213 Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK. au>) Credits Author Joydip Kanjilal Reviewers Santhosh Aravalli Chandana N. Athauda Anand Narayanaswamy Pavel Volgarev Acquisition Editor Kartikey Pandey Pramila Balan Nikhil Chinnari Lead Technical Editor Anila Vincent Technical Editors Mrunmayee Patil Faisal Siddiqui Sonali S.

Download PDF sample

Rated 4.85 of 5 – based on 50 votes

Related posts