Hi,
I have been trying to figure out how I could extract the segment path parameters from a REST url, I am sure all know that a REST url can be represented in two ways, one is as part of the path and another as a query parameter.
When a user clicks on a url link from our website we capture the link & save it in our database but as three parts. One is the base url, the segment path parameters(if any) and query parameters (if any).
For eg. http://www.test.com/article/12345?order=2
baseurl : http://www.test.com/article
segment path parameters : 12345
query parameters : order=2
Finding the query parameter is of course straight forward, I just parse everything after the "?" but I'm unable to figure out how I would know if a url has any segment path parameters and if so how I would I know what they are.
Would appreciate any inputs here.
Thanks.
KC