I'm a C++/Java guy trying to get started with developing a web service. I've read a LOT about RESTful services and I understand the architecture and how URIs should be formed, and I think I understand the client-side stuff since that is what of what I've found addresses. My question is probably a lot more basic - if I have a URI like this:
http://www.mysite.com/products/gadgets/spypen
what do I do on the server side to set this up? In my (obviously minimal) web programming experience, I would have a directory under HTTP root called "products" and then a subdir under that called "gadgets", and then a subdir "spypen" with an index.html in it. Obviously, this is NOT the way to do it in this type of situation.
It seems to me that I'd like to tell my (Linux-based Apache) web server to interpret the URI that it received and then call a specific PHP script (or whatever) with parameters of "gadgets" and "spypen". I may just be looking in the wrong places, but I can't find any resources that tell me what to do on the server side to get the PHP script called with those params when the URI is received by Apache. Any help would be appreciated and I hope I'm not asking a completely stupid question, but I'm pretty sure I am.. :-) Thanks!