Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

REST and authentication variants

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.23 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [RestRoot("/user")]
  2. public interface IUserInterface
  3. {
  4.   [RestPut("/")]
  5.   void Add(User user);
  6.  
  7.   [RestGet("/")]
  8.   int[] List();
  9.  
  10.   [RestGet("/get/{id}")]
  11.   User Get(int id);
  12.  
  13.   [RestDelete("/delete/{id}")]
  14.   void Delete(int id);
  15. }