The 2.3 release of REST framework is almost good to go, and I'm planning on pushing it live next week.
It introduces viewsets and routers, which are similar to Rail's controllers, and feel to me at least like a natural extension to the existing class-based views.
Using viewsets makes it incredible quick and easy to build new APIs, and having had a while to try it out for size, I'm really pleased with how it all feels.
You can take a look,
here.
The bits of most interest are the
2.3 release notes, the
new section in the tutorial, the
viewset and
router API guides. The generic views have also been simplified a little, with the
documentation for GenericAPIView being improved as a result of that. Finally it's also worth noting that ModelSerializers are now a little easier to use, as reverse relationships can just be added to the `fields` attribute and will be automatically generated, rather than having to specify the related fields explicitly on the serializer.
If anyone fancies giving it a whirl and reporting any show-stopping issues that'd be a great help.
I'm particularly interested in any actionable thoughts on how part 6 of the tutorial hangs together, and any tweaks that should be made there.
There's also a chance that
Mark Shirley's work on
writable nested serializers might make it into the 2.3 release, if I feel I've had enough time to write some docs and properly review it. Again, any feedback on how important this to you is appreciated. If it's something folks are crying out for it's more likely to make the cut before I push the release.
Thanks all,
Tom