0

I want to send a post request with an array of strings in postman to my django-rest-framework backend api. I want to use POSTMAN raw, because I will use the code inside my flutter mobile app.

I have tried:

    {
    "name": "ChatRoom"
    "members": ["william", "eric", "ryan"],
    "messages": []
    }

Also Tried:

{
"name": "aassss",
"members": [
    {
        "username":"william"
    }
]
}

In Django this Is a ManyToManyField of User

William Abrahamsson
  • 229
  • 1
  • 6
  • 19
  • In your first code example, comma is missing after "ChatRoom". Don't know whether it is a typo in question or it causes problem in your postman. – shaochuancs Jul 10 '19 at 23:59
  • Also, please attach your postman screenshot. Maybe some information is missing. – shaochuancs Jul 11 '19 at 00:00

0 Answers0