SHARE
TWEET

REST and authentication variants

a guest Feb 26th, 2012 40 Never
  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. }
RAW Paste Data
Top