I want to POST the following data:
{
"user": {
"name": "user name",
"email": "user@example.com",
"phone_number": "01XXXXXXXXX",
"user_type": "MGR"
},
"img": "image_data",
"manager_brands": [
2,
1
]
}
How can I pass this JSON data through postman
? Challenges I am facing:
- This is a nested JSON data
- I am passing an image with it.
Note: I wrote the nested serializers to GET/PUT/PATCH/DELETE requests. Everything works fine when I don't send an image (image is optional here).