Differences between viewset and apiview in django rest framework.
Asked
Active
Viewed 154 times
-2
-
i don't this is right plateform to ask this questions – aman kumar Jan 20 '20 at 12:55
2 Answers
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.

7FigureSwagger
- 105
- 11