Friendly URL for a REST WebService with CherryPy
I'm making a RESTful WebService using CherryPy 3 but I encounter a problem : I want to be able to answer requests like : /customers/1/products/386 meaning I want all the product with ID 386 of the client with ID 1. So I try to make it with the CherryPy's MethodDispatcher like this : class UserController(object): exposed = True def __init__(self): self.product = ProductController() @log_io def GET(self, *args): return "GET Users :" + str(args) class ProductController(object): exposed = True @log_io def GET(self, *args): return "GET Product :" + str(args) But when I request /customers/1/products