Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP

Slides:



Advertisements
Similar presentations
XPointer and HTTP Range A possible design for a scalable and extensible RDF Data Access protocol. Bryan Thompson Presented to the RDF Data Access.
Advertisements

XPointer and HTTP Range A possible design for a scalable and extensible RDF Data Access protocol. Bryan Thompson draft Presented to the RDF.
Dhananjay Kumar
Dhananjay Microsoft MVP
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
RESTful Services with ASP.NET Web API Vladimir Georgiev Technical Trainer & Software Developer
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
How to Write Unit Tests in C#
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Building Dynamic Applications on both Office 365 and on-premise.
OAuth-as-a-service using ASP.NET Web API and Windows Azure Access Control Maarten
ASP. Net is a rich web framework that leverages well known patterns and JavaScript frameworks to build great web experiences quickly.
1 San Diego, California 25 February Automating Your Interactions with ARIN Mark Kosters Chief Technology Officer.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
REST.  REST is an acronym standing for Representational State Transfer  A software architecture style for building scalable web services  Typically,
What’s New? – BCS 2013 Brett Lonsdale.  Co-founder of Lightning Tools  One of the hosts on the SharePoint Pod Show  Co-organizer of SharePoint Saturday.
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
ASP.NET Web API. ASP.NET Members MS Open Source ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source ASP.NET MVC 4, ASP.NET.
Open Data Protocol * Han Wang 11/30/2012 *
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
Extending the Reach of your Applications Jeremy Boyd & John-Daniel Trask Mindscape.
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
HTML5 AND THE FUTURE JAVASCRIPT PLATFORM Marcelo Lopez Ruiz Senior Software Design Engineer Microsoft Corporation.
Getting started with ASP.NET MVC Dhananjay
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
RESTful Web Services What is RESTful?
Securing Angular Apps Brian Noyes
JavaScript and Ajax (Internet Background) Week 1 Web site:
JavaScript for C# developers Dhananjay Microsoft MVP
Simplifying the Code First Approach in the Entity Framework Dhananjay Kumar Infragistics Consultant Microsoft MVP
How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist – Infragistics Microsoft MVP
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Building Web Applications using the latest ASP.NET technologies Max Déboli Director de Desarrollo Microsoft Azure MVP Lagash
#SummitNow CORS 6 Nov 2013 / 14 Nov 2013 Jared Ottley / Alfresco Software.
Google Analytics Graham Triggs Head of Repository Systems, Symplectic.
Website Design and Construction Services and Standards.
UNIT TESTING IN ANGULARJS Dhananjay
Angularjs 2.0 : Getting started
1 ODF and Web Mashups Basic techniques Rob Weir, IBM :15.
WEB AND MOBILITY PRESENTATION Date: Management and Computer Consultants.
Lesson 11: Web Services and API's
ArcGIS for Server Security: Advanced
Simplifying Objects and Inheritance in JavaScript
Understanding Web Server Programming
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
ASP.NET Integration Testing
ASP.NET Unit Testing Unit Testing Web API SoftUni Team ASP.NET
API Security Auditing Be Aware,Be Safe
Data Virtualization Tutorial… CORS and CIS
Introduction Web Environments
CMPE 280 Web UI Design and Development October 24 Class Meeting
© 2016, Mike Murach & Associates, Inc.
IBM Data Server Gateway for OData
WEB API.
Step by Step - AngularJS
Accessing Data in a .NET Web Application
Secure Web Programming
The Power of a Great API Damian Brady
Web API with Angular 2 Front End
Introduction to .NET Florin Olariu
Choosing between Silverlight and AJAX
Angular 2 : CRUD Operations
BOF #1 – Fundamentals of the Web
WCF Data Services and Silverlight
.NET Framework V3.5+ & RESTful web services
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Chengyu Sun California State University, Los Angeles
SQL Azure to .NET Developers
Presentation transcript:

Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP

Some Goodies  Two active participants among you may win this cool goodies.  We will announce winner name in webinar recap blog post which will be published on Infragistics blog  Recording of the webinar with all resources will be available on webinar recap blog post  We will ask you for your mailing address and courier you the goodies in India

Host : Dhananjay Kumar  Infragistics Consultant  6 times Microsoft MVP  Blog : 

Agenda About Web API Write First Web API using Scaffolding Consuming Web API in jQuery Enabling CORS Code First and Repository Pattern in Web API

What is ASP.NET Web API Framework to create HTTP based services Web API can be consumed by wide range of clients from browsers to mobile apps Web API returns data based on the client request It supports convention- based CRUD Actions since it works with HTTP verbs GET,POST,PUT and DELETE.

What is ASP.NET Web API Web API Browsers Mobile apps Desktop apps IOT

ASP.NET Web API To create HTTP based service HTTP protocol used as the application protocol Responses have an Accept header and HTTP status code. It works on the content negotiation from the clients. So it may return JSON or XML based on the headed of client request. Web API can create or send in the response contents like PDF, Images etc. It has inbuilt ODATA support. So if action has return type Iqueryable, client can apply ODATA query on that. It can hosted in IIS or self hosted

ASP.NET Web API Content Negotiation Content negotiation is the process of selecting the best representation for a given response when there are multiple representations available The underling Web API framework implements the content negotiation By default it Web API returns the JSON data While requesting for a resource client can specify the media type. Web API returns the data on the basis of the media types requested by the clients.

ASP.NET Web API Demo : End to end Web API using the Scaffolding Set up the database Create model using the Entity framework Database first approach Create Web API using the Scaffolding Consume Web API in the browser to test content negotiation Consume Web API in the jQuery based web application

ASP.NET Web API Demo : Solving CORS in Web API Enabling CORS at Controller level Enabling CORS at whole API level Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts, JavaScript, etc.) on a web page to be requested from another domain outside the domain from which the resource originated.

ASP.NET Web API Demo : End to end Web API using the Code First and Repository pattern Create the entity class Create the DataContext classed Create repository classes and interfaces Create the Web API using the Repository Consume Web API in the jQuery based web application

Summary  About Web API  Write First Web API using Scaffolding  Consuming Web API in jQuery  Enabling CORS  Code First and Repository Pattern in Web API  Creating Charts consuming Web API

What Infragistics can offer you? We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: Please reach out to us at for any follow up questions you may have. We welcome the opportunity to assist