Introduction to .NET Florin Olariu

Slides:



Advertisements
Similar presentations
Service Bus Service Bus Access Control.
Advertisements

DT211/3 Internet Application Development Active Server Pages & IIS Web server.
1 ICS102: Introduction To Computing King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
06 | Implementing Web APIs Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
References Applications of Computer Programming in Earth Sciences Instructor: Dr. Cheng-Chien LiuCheng-Chien Liu Department of Earth Sciences National.
Datacenter LOB web service LOB app Partner Mobile Device.
Membership in ASP.Net...if only Presented by: Patrick Hynds President, CriticalSites Microsoft Regional Director.
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
ASP. Net is a rich web framework that leverages well known patterns and JavaScript frameworks to build great web experiences quickly.
Design for Senior Project December 05, 2007 Raytheon_Design_Review.ppt 1 of 19 Raytheon – Google Earth Roy Daniels, Marc Maciel, Rifina Pierre Department.
ASP.NET Web API Udaiappa Ramachandran NHDN-Nashua.NET/Cloud Computing UG Lead Blog:
Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP
GET Examples – db.org/sops/3/experimental_conditions/55http://seek.sysmo- db.org/sops/3/experimental_conditions/55 –
Inside the WebApp Classes John Tuohy Data Access Worldwide.
Goals One ASP.NET Membership story – Web APIs and Web Apps Profile. Extensibility allows for non SQL persistence model. Improve unit testability of.
Delphi (Prism) SOAP Web Services and Security Adding SOAP Headers, Hashing and HTTPS Bob Swart (aka Dr.Bob)
REST - Introduction Based on material from InfoQ.com (Stefan Tilkov) And slides from MindTouch.com (Steve Bjorg) 1.
Introduction to the SharePoint 2013 REST API. 2 About Me SharePoint Solutions Architect at Sparkhound in Baton Rouge
Web Architecture Introduction
Building a Web API for browser/JSON clients.
CIRSCALC - CT BONE DENSITOMETRY. Agenda  What is CIRSCALC project?  Tools Used.  Code Description Database Connectivity Crystal Reports Graph  Demo.
Summary Report Project Name: Infoway Message Builder API Brief Project Description: Develop API componenet that obscure complexity for implementation of.
1 © Donald F. Ferguson, All rights reserved.Modern Internet Service Oriented Application Development – Lecture 2: REST Details and Patterns Some.
WStore Programmer Guide Offering management integration.
RESTful Web Services What is RESTful?
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
Alex Turner Senior Program Manager Managed Languages Team Improve Your Code Quality using Live Code Analyzers.
 INTRODUCTION  DESIGN PRINCIPLES AND EXPLANATION Modules Modules description  PROJECT DICTIONARY Data dictionary Data Flow diagram  FORMS  ADVANTAGES.
WebApi: What is it? How can I use it? Guy In Front of the Whittaker.
WStore Programmer Guide Resources management integration.
National College of Science & Information Technology.
Introduction to.NET Florin Olariu & Andrei Arusoaie “Alexandru Ioan Cuza”, University of Iai Department of Computer Science.
Introduction to.NET Florin Olariu “Alexandru Ioan Cuza”, University of Iai Department of Computer Science.
ASP.NET Programming with C# and SQL Server First Edition
Introduction to .NET Florin Olariu
Introduction to .NET Florin Olariu
Introduction to .NET Florin Olariu
Data Virtualization Demoette… Custom Java Procedures
Department of Computer Science
API Security Auditing Be Aware,Be Safe
Automate Custom Solutions Deployment on Office 365 and Azure
An introduction to REST for SharePoint 2013
ASP.NET Web Forms and Web Services
Web Service Testing With .Net
Function Test Framework
Ashish Pandit IT Architect, Middleware & Integration Services
Testing REST IPA using POSTMAN
DotnetConf 11/17/ :06 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE.
Introduction to .net Impersonation
Web Service Accounting System
ASP.NET 5 on .NET Core Damian Edwards Principal Program Manager.
03 | Web API Configuration
Introduction to .NET Florin Olariu
COMP3220 Web Infrastructure COMP6218 Web Architecture
Old Dominion University Department of Computer Science
PIE Planning & Resources
Building production-ready APIs with ASP.NET Core 2.2
Web API with Angular 2 Front End
4/15/2019 1:57 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Introduction to .NET Florin Olariu
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
ASP.NET MVC Web Development
Functions By Anand George.
Old Dominion University Department of Computer Science
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Chengyu Sun California State University, Los Angeles
Computer Programming Dr. Deepak B Phatak Dr. Supratik Chakraborty
Just Enough SSIS Scripting to be Dangerous.
11/11/2019 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Presentation transcript:

Introduction to .NET Florin Olariu “Alexandru Ioan Cuza”, University of Iași Department of Computer Science

ASP.NET Web API - II

Agenda Status codes recap Demo : How to return child resources Demo : Working with serializer settings Content negotiation Demo: Content negotiation Demo : Creating a resource Demo : Validating input Demo : Updating a resource Demo : Deleting a resource Best practices in Web API’s Summary

Status codes recap

Status codes recap

Demo : How to return child resources

Demo : Working with serializer settings

Content negotiation

Content negotiation Formatters and Content negotiation What is the meaning?

Content negotiation Formatters and Content negotiation The idea is selecting the best representation for a given response when the are multiple representation available. In order to solve this goal we have to:

Content negotiation Formatters and Content negotiation The idea is selecting the best representation for a given response when the are multiple representation available. Pass media type via the accept header of the request Sample:

Content negotiation Formatters and Content negotiation The idea is selecting the best representation for a given response when the are multiple representation available. Pass media type via the accept header of the request application/json application/xml Formatters:

Content negotiation Deals with: output and input

Content negotiation

Demo: Content negotiation

Demo : Creating a resource

Demo : Validating input ModelState Data validation For custom validations make use of Fluent Validation https://www.nuget.org/packages/Microsoft.AspNet.WebApi.Core/ https://www.exceptionnotfound.net/custom-validation-in-asp-net-web-api-with- fluentvalidation/

Demo : Updating a resource

Demo : Deleting a resource

One more thing…(1/2) Postel’s law.

Best practices for API’s One more thing…(2/2) Best practices for API’s https://medium.com/@schneidenbach/restful-api-best-practices-and- common-pitfalls-7a83ba3763b5#.6wmaehuhu

Summary Recap status codes Formatters and content negotiation Creating/updating/deleting updating resources Best practices

Bibliography Pluralsight

Questions Do you have any other questions?

Thanks! See you next time! 