【发布时间】:2021-02-18 20:32:13
【问题描述】:
我想在 POST 请求中通过邮递员发送数组。我想发送这样的数据
{
"users": [1, 2]
}
我读了这篇文章Is it possible to send an array with the Postman Chrome extension?
并复制,但收到错误(见图)。 我该如何解决这个错误?
我正在使用 django rest 框架,服务器回答了这个问题
request["users"] is None
【问题讨论】:
-
端点需要json还是formdata?
标签: django-rest-framework postman