-2

Differences between viewset and apiview in django rest framework.

2 Answers2

1

viewset comes with already implemented all method and extra action, for the APiview you have to define all method

aman kumar
  • 3,086
  • 1
  • 17
  • 24
0

If you have built MVC before, you may find it easier to build out your models using APIView. For the explicit use of 'CRUD' methods. I would suggest being consistent with where/how you use them as well, especially if someone else has to look at/work on the project, and is less familiar with Django.