blob: 7ba189d423701b7d5d28a5bf33eb41accb9a3a9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
}
}
|