Home Books

Web Development

Download ASP.NET Web API 2: Building a REST Service from Start to by Jamie Kurtz, Brian Wortman PDF

By Jamie Kurtz, Brian Wortman

The ASP.NET MVC Framework has constantly been an excellent platform on which to enforce REST-based providers, however the creation of the ASP.NET internet API Framework raised the bar to an entire new level.

Now in unlock model 2.1, the internet API Framework has advanced right into a robust and refreshingly usable platform. This concise e-book presents technical history and counsel that might help you most sensible use the ASP.NET internet API 2 Framework to construct world-class leisure services.

New content material during this variation includes:
• New services in internet API 2 (currently model 2.1).
• help for partial updates, or PATCH.
• API versioning.
• aid for legacy SOAP-based operations.
• the way to deal with non-resource APIs utilizing REST
• how one can most sensible reveal relationships among resources
• JSON net Tokens, CORS, CSRF

Get prepared for authors Jamie Kurtz and Brian Wortman to take you from 0 to relaxation carrier hero very quickly in any respect. No previous event with ASP.NET net API is needed; all internet API-related thoughts are brought from simple rules and built to the purpose the place you should use them in a creation procedure. a great operating wisdom of C# and the .NET Framework are the single necessities to most sensible reap the benefits of this booklet.

Show description

Read Online or Download ASP.NET Web API 2: Building a REST Service from Start to Finish (2nd Edition) PDF

Similar web development books

Web Form Design: Filling in the Blanks

Kinds make or holiday the main the most important on-line interactions: checkout, registration, and any job requiring info access. In internet shape layout, Luke Wroblewski attracts on unique learn, his enormous adventure at Yahoo! and eBay, and the views of the various field's major designers to teach you every thing you must find out about designing powerful and fascinating internet kinds.

Learning JavaScript Design Patterns

With studying JavaScript layout styles, you'll find out how to write attractive, based, and maintainable JavaScript through utilising classical and smooth layout styles to the language. with a view to hold your code effective, extra viable, and updated with the newest most sensible practices, this ebook is for you.

Node: Up and Running: Scalable Server-Side Code with JavaScript

This booklet introduces you to Node, the recent net improvement framework written in JavaScript. You'll examine hands-on how Node makes existence more uncomplicated for knowledgeable JavaScript builders: not just are you able to paintings at the entrance finish and again lead to a similar language, you'll even have extra flexibility in selecting the right way to divide software common sense among shopper and server.

Pro PHP and jQuery (2nd Edition)

Benefit from the enhanced functionality and lowered reminiscence requisites of personal home page model 7, and discover ways to make the most of the hot integrated personal home page services and lines akin to typed variable enforcement with declare(strict_types=1) and the recent to be had info forms, scalar sort declarations for functionality arguments and go back statements, consistent arrays utilizing define(), argument unpacking with the .

Additional resources for ASP.NET Web API 2: Building a REST Service from Start to Finish (2nd Edition)

Example text

At this point, you might be wondering why you have so many projects for such a simple application. There are a plethora of reasons why this separation works well, some of which are beyond the scope of this book. SqlServer project. This approach helps during development, but it also helps keep deployments and updates/patches much cleaner. Table 4-3 illustrates what each project is used for and what it will contain. Table 4-3. Common Contains “framework-ish” functionality not specific to the API or the database.

Sql Figure 4-7. [User]( [UserId] BIGINT IDENTITY (1, 1) NOT NULL, [Firstname] [nvarchar](50) NOT NULL, [Lastname] [nvarchar](50) NOT NULL, [Username] NVARCHAR(50) NOT NULL, [ts] [rowversion] NOT NULL, CONSTRAINT [PK_User] PRIMARY KEY ([UserId]) ); 46 CHAPTER 4 N BUILDING THE ENVIRONMENT AND CREATING THE SOURCE TREE Figure 4-8. File Properties for files in the Tables folder All of the files in the Tables folder should have the file properties shown in Figure 4-8. With all that in place, you should be able to build and publish the WebApi2BookDb project!

With that as an introduction, we will be implementing a controller action method to match the request shown in Table 5-3, so go ahead and open the solution in Visual Studio. 57 CHAPTER 5 N UP AND DOWN THE STACK WITH A POST Table 5-3. URL and HTTP Verb for Versioned POST URI Verb Description /api/{apiVersion}/tasks POST Creates a new task; returns the new task in the response Implementing POST Add two folders to the Controllers folder: “V1” and “V2”. The API project should then look like Figure 5-2.

Download PDF sample

Rated 4.07 of 5 – based on 35 votes