At the recent Pnp Summit, during a presentation on Ado.Net Data Services, I asked Scott Hanselman whether it supported the REST “hypermedia constraint”, to which he responded by asking me to clarify my question. At that point, and at several other times during the conference I realized that although I think I grok the concept, [...]
Archives for May 2008
The ultimate WCF Service contract
[ServiceContract]
public interface IRESTService {
[OperationContract]
[WebInvoke(Method = "GET",UriTemplate = "*")]
Stream Get();
[OperationContract]
[WebInvoke(Method = "POST", UriTemplate = "*")]
Stream Post(Stream body);
[OperationContract]
[WebInvoke(Method = "PUT", UriTemplate = "*")]
Stream Put(Stream body);
[OperationContract]
[WebInvoke(Method = "DELETE", UriTemplate = "*")]
Stream Delete();
}
Posts