I have a WCF REST 4.0 project based on the the WCF REST Service Template 40(CS). I\'d like to expose simple service endpoint URLs without trailing slashes. For example:
You need a UriTemplate, Try something like this:
[ServiceContract()] public interface ICarService { [OperationContract] [WebGet(UriTemplate = "/Car")] CarPool GetAllCars(); [OperationContract] [WebGet(UriTemplate = "/Car/{carName}")] Car GetCar(string carName); }