summaryrefslogtreecommitdiffstats
path: root/src/OAuth/OAuthResourceServer/Code/IDataApi.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/OAuth/OAuthResourceServer/Code/IDataApi.cs')
-rw-r--r--src/OAuth/OAuthResourceServer/Code/IDataApi.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/OAuth/OAuthResourceServer/Code/IDataApi.cs b/src/OAuth/OAuthResourceServer/Code/IDataApi.cs
new file mode 100644
index 0000000..7ba189d
--- /dev/null
+++ b/src/OAuth/OAuthResourceServer/Code/IDataApi.cs
@@ -0,0 +1,21 @@
+namespace OAuthResourceServer.Code {
+ using System;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Runtime.Serialization;
+ using System.ServiceModel;
+ using System.ServiceModel.Web;
+ using System.Text;
+
+ [ServiceContract]
+ public interface IDataApi {
+ [OperationContract, WebGet(UriTemplate = "/age", ResponseFormat = WebMessageFormat.Json)]
+ int? GetAge();
+
+ [OperationContract, WebGet(UriTemplate = "/name", ResponseFormat = WebMessageFormat.Json)]
+ string GetName();
+
+ [OperationContract, WebGet(UriTemplate = "/favoritesites", ResponseFormat = WebMessageFormat.Json)]
+ string[] GetFavoriteSites();
+ }
+} \ No newline at end of file