Skip to content

Instantly share code, notes, and snippets.

@jordansjones
Created June 17, 2013 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordansjones/5799913 to your computer and use it in GitHub Desktop.
Save jordansjones/5799913 to your computer and use it in GitHub Desktop.
Example Service Client interface
[ServiceClient("/path/to/endpoint", BaseType = typeof(BaseServiceClient<HelloWorldDto, int>))]
public interface IHelloWorldClient {
[HttpGet]
IObservable<HelloWorldDto> GetBy(int key);
[HttpPost]
IObservable<HelloWorldDto> Create(HelloWorldDto entity);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment