You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating API endpoints for User model
The hardware devices will need to communicate with the server, so for that we require API endpoints to get the specific results in the JSON format.
Requirements of the Product
Getting a list of Users
Getting the information of single user
Creating an user using POST method
Updating the information of user using their id.
To make the code standard please use the following parameters
serializers.py for dumping data in JSON
views.py for creating all kinds of endpoints
Use class viewsets.ModelViewSet
All the API endpoints related to the user model should be present inside same class
Creating API endpoints for User model
The hardware devices will need to communicate with the server, so for that we require API endpoints to get the specific results in the JSON format.
Requirements of the Product
To make the code standard please use the following parameters
Where to write the file
Note
The text was updated successfully, but these errors were encountered: