[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();
}
![WCF Service](https://e3c4fpsheba.exactdn.com/wp-content/uploads/2022/11/wcf-contract.png?strip=all&lossy=1&ssl=1)