I have created the RESTful service and below is the code. I want to support different uri's for this method. Please suggest me how to do this.
Supported URL Patterns:
GET /[lCode]/Country/[cCode|All]/GeographicCode/[geographicCode]
GET /Country/[cCode|All]/GeographicCode/[geographicCode]
GET /Country?...
POST /Country
Below is the code for the method
[OperationContract]
[WebInvoke(ResponseFormat = WebMessageFormat.Xml, Method = "GET", UriTemplate = "/Country/?cCode={cCode}&" + "geographicCode={geographicCode}&" + "lCode={lCode}&iInactive={iInactive}")]
Response Country(string cCode, string geographicCode,
string lCode, string iInactive);