13
For more information see www.bbd.co.za and www.drp.co.za

Developing RESTful Services in .NET

Embed Size (px)

DESCRIPTION

This presentation takes a very practical view of the various ways you can build RESTful services in the .NET Framework.

Citation preview

Page 1: Developing RESTful Services in .NET

For more information see www.bbd.co.za and www.drp.co.za

Page 2: Developing RESTful Services in .NET

Look at creating RESTful Services using .NET

NOT covering

Design Patterns

Best Practises*

Page 3: Developing RESTful Services in .NET

Acronym?

Representational State Transfer

Source?

Came about in 2000 doctoral dissertation of Roy Fielding

Page 4: Developing RESTful Services in .NET

ROA – Resource Orientated ArchitectureWOA – Web Orientated Architecture Thanks Gartner for another TLA It is a styleNOT API Interface Official Standard A drop in replacement for SOAP

Page 5: Developing RESTful Services in .NET

ASP.NET WebForms

ASP.NET MVC

WCF Data Services

WCF REST

3rd Parties

Page 6: Developing RESTful Services in .NET

Demo in all 4 .NET technologies

Full CRUD on Games

Focus on the REST – Ignore the rest (i.e black box)

Work in JSON

Page 7: Developing RESTful Services in .NET

A RESTful Service

Page 8: Developing RESTful Services in .NET

WebForms

Not really built for this

Need to EVERYTHING

Not recommended unless you have no other option

Page 9: Developing RESTful Services in .NET

MVC

A lot better than WebForms

Helper methods for handling method type, jsonetc…

Multiple return types means more work

Page 10: Developing RESTful Services in .NET

WCF Data Services

All done for you

Good security model

Designed with data solutions in mind

Issues if not using EF (non-POCO)

Powerful client side options

OData Format

Page 11: Developing RESTful Services in .NET

WCF REST

Loads of helpers

Designed with REST in mind

Not tied to data solutions

Powerful clients

Page 12: Developing RESTful Services in .NET

WebForms + MVC

WCF REST + WCF Data Services

MVC + WCF Data Services

Page 13: Developing RESTful Services in .NET