I learned serializer in Postman.
Continuing on from yesterday, I’m lost in the Django Restframework!
In the midst of all this, I learned about a service called Postman and tried it out, so I made a note of it.
(red line) In body -> form-data, Send (blue button) with KEY VALUE left blank returns an error.
![](https://www.askdjapy.com/wp-content/uploads/2021/03/blank-1024x362.png)
The message “NULL constraint failed” is returned.
![](https://www.askdjapy.com/wp-content/uploads/2021/03/error-1.png)
![](https://www.askdjapy.com/wp-content/uploads/2021/03/null-constraint.png)
Input KEY and VALUE described in views.py and Send returns a formatted response.
![](https://www.askdjapy.com/wp-content/uploads/2022/05/test2-1024x431-1.png)
![](https://www.askdjapy.com/wp-content/uploads/2021/03/postman2-1.png)
You can change the description of the serializer in views.py of the created application to check the operation.
How to use Postman, a useful tool for API development and testing
How to use “Postman” to make a lot of progress in API development.
Don’t be afraid even if it’s your first time! Let’s use Postman and get to grips with the Web API!
Recommend
VSC error message: Import “django.db” could not be resolved from source