"status": 406 Content-Type header [text/plain] is not supported
創(chuàng)建索引報錯
請求方式: 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
}
2018-03-06
header 設(shè)置錯了,應(yīng)該是?application/json
如果是用 postman 的話,可以進(jìn)入Body,然后選擇 raw JSON(application/json)格式