In my project, I have the following 4 APIs (function base API view)
save_user()
login_user()
get_user_info()
update_user()
I want to convert it into class base API view
class UserApi(APIView):
def post():
#save user
def get():
#for get user info
def put():
#for update user info
so how to use login() in class base views. OR use function base view for login?
to use a mixture of class based API view and function base API view in a single views.py file is good or bad?