1 / 18

Web API Quick Start

Web API Quick Start. How to quickly maximize the value you add With web api. CODE CAMP 2013 SPONSORS. GOLD. SILVER. BRONZE. Goal. To allow programmers experienced with creating services in the Microsoft stack to quickly get going with Web API. About Me. Ryan Vice Independent Consultant

alder
Download Presentation

Web API Quick Start

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web API Quick Start How to quickly maximize the value you add With web api

  2. CODE CAMP 2013 SPONSORS GOLD SILVER BRONZE

  3. Goal • To allow programmers experienced with creating services in the Microsoft stack to quickly get going with Web API

  4. About Me Ryan ViceIndependent Consultant RyanViceTx@Gmail.com www.RyanVice.net

  5. Agenda • Background and Motivations • Quick Start • Dealing with Mismatched Conventions • Versioning • Documenting Our API

  6. Background and MotivationsAPI Modeling - RPC

  7. Background and MotivationsAPI Modeling – Resource centric

  8. Background and MotivationsEvolving frameworks • ASP • ASP.Net Web Forms • Server side controls • Disconnected data access • Data binding • ASP.Net MVC • Separation of Concerns • Closer to the metal with HTTP • ASP.Net Web API • Content negotiation • Fewer global objects • Improved testability • Integrated help page support • Symmetrical client programming model • Better HTTP support via strongly typed HTTP Object Model • Filter chaining (or filter pipeline) support • Self-hosting

  9. Background and MotivationsEvolving Designs • ASP • Weak support for server side UX logic • ASP.Net Web Forms • Stronger support for server side UX logic • Weak support for loosely coupled UX tier • ASP.Net MVC • Stronger support for looser coupling UX tier • Weak support for resource centric API modeling • ASP.Net Web API • Stronger support for resource centric API Modeling

  10. Background and Motivationsasp.net mvcrPC style json services • Not resource centric • Not good for multi-targeting

  11. Background and Motivationsasp.net mvcrPC style json services - API

  12. Background and Motivationsasp.net mvcrPC style json services - iSSUES • Not resource centric • Not good for multi-targeting or for public facing API

  13. Background and Motivationsasp.net mvc Resource Centric style json services - API

  14. Background and Motivationsasp.net mvc resource centric style json services • Resource centric • Cumbersome to write • Awkward routing • Difficult to organize controller • Requires extra code for content negotiation • Magic strings for status codes

  15. Quick Start Web API demo

  16. Quick Startasp.net WEB API Resource Centric style json services - API

  17. Take Aways • Web Api makes it easier to create HTML friendly web services • Json.Netserializer allows offers a lot of benefits for making HTML friendly JSON • Help Pages allows you to get your services documented quickly • There are a few options for versioning your services, the most important thing is to pick one

  18. Resources • Web API Official Page http://www.asp.net/web-api • APIGEE http://apigee.com/about/ • Pluralsighthttp://www.pluralsight.com/ • My Blog http://www.RyanVice.net

More Related