On Sat, Jan 1, 2011 at 2:47 PM, Chris McDonough <[email protected]> wrote: > On Sat, 2011-01-01 at 16:05 +0100, Andreas Jung wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> What is the canonical way for implementing a REST service based on >> Pyramid? Google mentions different approaches but is there >> something build-in in Pyramid for reuse? > > Not really. But you can assemble a "REST API" (whatever definition of > "REST API" you consider to be your particular religion) using routes > with views that have view predicates (like request_method) and a json > renderer as necessary.
There is a routehelper module coming that will complete the missing features from Routes, including a map.resource equivalent as I understand it. But it doesn't exist yet, so you'll have to write your own routes for now. -- Mike Orr <[email protected]> -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
