New to django: how to create an api to register new users


I’m fairly new to django. How can i use abstractBaseUser class to create a custom user (with basic email, password, username, etc) and create a view that handles the httpRequest after it was mapped from the urls in the app? I basically want to create a function based view that processes a specific post request to create a new user and returns a response with the successful user creation announcement.

You can take reference from here Creating a Custom User Model in Django | to create a Custom user model and for the view are you going to REST APIs or simple post requests via forms.