I'm building an API with WCF (C#) and testing it with Postman. I seem to be having trouble using the "Params" section within Postman, as it is translating any key value pairs I input into Query String Params.
My Contract specifies the UriTemplate like so...
[OperationContract]
[WebGet(UriTemplate = "/GetClientDataFromAlias/Alias/{alias}",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json)]
GetClientDataFromAliasResponse GetClientDataFromAlias(string alias);
Yet when I run the request through Postman the URL is translated into the following...
http://troikawcf.localhost/ClientWCFService.svc/GetClientDataFromAlias?Alias=myalias
What I would like it to translate to is the following, to match my contract
http://troikawcf.localhost/ClientWCFService.svc/GetClientDataFromAlias/Alias/myalias
Am I missing a setting in Postman to set all params in the Path format? Or do I need to change my Contract to utilize Query String Params?
See screen grab below for more info...
Many Thanks