使用Services 3.x和JSON创建注释和节点
我无法让服务识别到/comment.json的POST。创建节点也有类似的问题。 以下是我得到的错误:HTTP / 1.1 406不可接受:缺少必需的参数注释 此消息来自文件:/services/server/rest_server/includes/RESTServer.inc具体来说,以下几行: elseif (!isset($info['optional']) || !$info['optional']) { return services_error(t('Missing required argument !arg', array( '!arg' => $info['name'], )), 406); } 基本上,似乎认为缺少“ comment”参数(并且它不是可选的)。 这是我提供的JSON的许多位之一(向节点8801发布注释) {name:"test",language:"und",cid:"0",pid:"0",uid:"17593",nid:"8801", comment:{subject:"Subject of the comment, if not entered it will be auto-generated", comment_body: {und:[ [{value:"value of the field comment in the comment, remember that …