Forum Discussion

sprice090161's avatar
sprice090161
Contributor
7 years ago

SUPPORTING A REST API PARAMETERS IN THE URL BEFORE THE "?" OR AFTER AS PARAMETERS.

I haven't run into this one yet. The customer is requesting that we can embed some of the url parameters in the endpoint definition prior to the parameter delimiter "?", or after the "?" delimiter as one would typically expect a parameter. 

What is the best way to handle this? All I can think of id to create unique binding with and without, and test as separate projects or test suites. 

I was wondering if anyone else has provided support for this scenario and what might be the most efficient way to implement the testing. 

Ex: 
"http://integration.Mylocal.com/api/Customer/GetSomething/SomeNumber/SomeID
"http://integration.Mylocal.com/api/Customer/GetSomething/SomeNumber/?SomeID=abc123", 
"http://integration.Mylocal.com/api/Customer/GetSomething/?SomeNumber=300&SomeID=abc123