Sorry, let me be more clear:<div><br></div><div>I have a Resource let&#39;s say CustomerRestService which is a leaf and handles everything related to &#39;/customer&#39;</div><div>Then I want a CustomerAddressRestService Resource, which is also a leaf and should handle everything related to &#39;/customer/&lt;customerId&gt;/address&#39;.</div>
<div><br></div><div>So I need a leaf Resource (i.e. it actually intercepts GET/POST/PUT/DELETE requests to the root &#39;/customer&#39; URL)</div><div>with a child leaf Resource (which intercepts the GET/POST/PUT/DELETE requests to its root &#39;/customer/&lt;customerId&gt;/address&#39; URL).</div>
<div><br></div><div>Twisted does not really allow for nested leaf resources, but REST is all about nested URL schemes, e.g. </div><div><br></div><div>Customer -&gt; Customer Address</div><div>Customer -&gt; Customer Phone</div>
<div>Customer -&gt; Customer Invoice -&gt; Customer Payment</div><div><br></div><div>etc.</div><div><br></div><div>Taking CorePost out of the picture and just going back to raw twisted.web, how would you recommend that be done?</div>
<div><br></div><div>Jacek</div>