[Twisted-web] Leaf Resources with child Leaf Resources
jacek99 at gmail.com
Fri Mar 2 20:28:37 EST 2012
Well, maybe this will explain what I want to achieve, based on latest
(already working) code from trunk:
A sample of a REST app with two REST services exposed
There is a generic RESTResource (an actual twisted.web Resource) that
register child REST services (just regular classes).
It takes care of routing all the requests to them.
A human readable BDD that shows the unit tests for it:
I am getting pretty happy with this API. It achieves what I wanted, needs
more thorough testing though before I release
an official version with it.
On Fri, Mar 2, 2012 at 9:18 AM, <exarkun at twistedmatrix.com> wrote:
> On 1 Mar, 02:59 pm, jacek99 at gmail.com wrote:
> >That is exactly what I wanted to do (i.e. custom dispatching to child
> >classes from a single leaf Resource).
> This sounds like the opposite conclusion as Jonathan (and earlier, me)
> was suggesting. However, you trimmed *all* context from this reply, so
> perhaps I am not correctly interpreting you.
> Anyway, good luck.
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web