Switching over to class-based api views for rest