According to the documentation, we can have URL that have at least one part of it is dynamic. E.g. if I have "/api/19/foo", the "19" could be any integer. Then, in my code, it looks like I would have something like this:
void getFoo(int id)
{
...
}
Can I do this with strings? E.g. if I have a URL like this: "/api/foo/bar/action", can I have "foo" and "bar" be accessible the same way? Or, am I forced to use URL variables? Or, is there a workaround for this?
The associated method would look like this:
void getAction(string id1, string id2)
{
...
}