I have written an API with this format:
[OperationContract]
[WebInvoke(Method = "Get", UriTemplate = "/GetPrice/{ItemID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
string GetVegatablePrice(string ItemID);
I got an error:
method not allowed