[DataContract]
[RestService[Route("/customers", "GET"]
[RestService[Route("/customers/search/{SearchTerm}", "GET"]
[RestService[Route("/customers/region/{Region}", "GET"]
[RestService[Route("/customers/region/{Region}/search/{SearchTerm}", "GET"]
public class Customers
{
[DataMember]
public int? RegionId { get; set; }
[DataMember]
public string SearchTerm { get; set; }
}
public class CustomersService : RestServiceBase<Customer>Service
{
public override classpublic OnGetobject Get(Customers request) {
// handle request
return new CustomersResponse();
}
}