title: How to design REST API with Twisted?
body: <p>I'm planning to design some REST APIs with Twisted in Python.  For example, I want to use the HTTP method "GET" to fetch a single user's information:</p>
  
  <pre><code>GET http://myhost:8000/api/v1.0/users/[user_id]
  </code></pre>
  
  <p>I know I should inherit the twisted.web.resource.Resource and implement "getChild" by myself. The question is, should I implement a class for each segment of the URI? If so, I have to implement class API, class V1, class Users and Class User. In other words, if there're 10 segments in the URI, do I have to implement 10 classes to represent those resources?</p>