tomchristie/django-rest-framework — pull request #320 by j4mie (2012-10-24 17:27:59+00:00)
Title: Split concrete generic views up into separate bits of functionality

I wanted a `CreateAPIView` (ie not a `ListCreateAPIView`). There wasn't one.

This PR splits each operation (list, retrieve, create, update, delete) into a separate view class that does just that one thing. These individual views are the ones that extend from the mixins that provide the actual operations.

The views that do more than one thing extend from these separate views. For example, `ListCreateAPIView` extends from `ListAPIView` and `CreateAPIView` and `RetrieveUpdateDestroyAPIView` extends from `RetrieveAPIView`, `UpdateAPIView` and `DestroyAPIView`. The implementations of these multiple-operation views are empty (ie all the functionality is provided by the superclasses).

I've not added any more tests, but all the existing tests pass, so I think it should be OK?