.net - Getting started with REST -


i looking links best practices , sample code on creating restful web services using .net.

also, other input might have regarding rest appreciated.

ado.net data servcies makes easy build , consume restful web services in .net world nevertheless understanding concepts important. compared wcf (which added rest support later), ado.net data services built rest.

guidelines building restful web services has info on resources need.

this useful blog entry:

the uniform interface constraints describe how service built web can participant in web architecture. these constraints described briefly follows :

1) identification of resources: resource information item can named , represented (e.g. document, stock price @ given point in time, current weather in las vegas, etc). resources in service should identified using uris.

2) manipulation of resources via representations: representation physical representation of resource , should correspond valid media type. using standard media types data formats behind service increases reach of service making accessible wide range of potential clients. interaction resource should based on retrieval , manipulation of representation of resource identified uri.

3)self-descriptive messages: following principles of statelessness in service's interactions, using standard media types , correctly indicating cacheability of messages via http method usage , control headers ensures messages self descriptive. self descriptive messages make possible messages processed intermediaries between client , server without impacting either.

4)hypermedia engine of application state: application state should expressed using uris , hyperlinks transition between states. controversial , least understood of architectural constraints set forth in roy fielding's dissertation. in fact, fielding's dissertation contains explicit arguments against using http cookies representing application state hammer point home yet ignored.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -