创建索引报错
请求方式: put
{
"title": "My first blog entry",
"text": "Just trying this out...",
"date": "2014/01/01"
}
返回值
{
"error": "Content-Type header [text/plain] is not supported",
"status": 406
}
header 设置错了,应该是 application/json
如果是用 postman 的话,可以进入Body,然后选择 raw JSON(application/json)格式