How can I get argument not separated by / in REST?
Let's say I need to process these urls in one REST method:
http://host:port/REST/arg1/arg2/arg3 http://host:port/REST/arg1/arg2/ http://host:port/REST/arg1/arg2 http://host:port/REST/arg http://host:port/REST/
Currently I need to define URL Map like this (assuming /REST web app):
XData UrlMap { <Routes> <Route Url="/:arg1" Method="GET" Call="GET"/> <Route Url="/:arg1/:arg2" Method="GET" Call="GET"/> <Route Url="/:arg1/:arg2/" Method="GET" Call="GET"/> <Route Url="/:arg1/:arg2/:arg3" Method="GET" Call="GET"/> </Routes> }
Is there a way to get all these URLs in one route:
XData UrlMap { <Routes> <Route Url="/:arg" Method="GET" Call="GET"/> </Routes> }