Package updates, added test server
[pithos-ms-client] / trunk / Pithos.TestServer / UsersController.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Net;
5 using System.Net.Http;
6 using System.Web.Http;
7
8 namespace Pithos.TestServer
9 {
10     public class UsersController : ApiController
11     {
12
13
14         // POST api/<controller>
15         public UserResponse Post(UserRequest value)
16         {
17             return new UserResponse
18                 {
19                     displayname_catalog = new Dictionary<string, string>(),
20                     uuid_catalog = new Dictionary<string, string> {{value.uuids[0], "pkanavos@gmail.com"}}
21                 };
22         }
23
24
25       
26     }
27     
28     public class UserRequest
29     {
30         public string[] uuids { get; set; }
31     }
32
33     public class UserResponse
34     {
35         public Dictionary<string,string> displayname_catalog { get; set; }
36         public Dictionary<string, string> uuid_catalog { get; set; }
37     }
38 }