我正在尝试使用rest_v2资源服务创建文件夹。我在请求PUT中将资源描述符xml作为请求体的一部分发送。我总是收到一个糟糕的请求错误,并且不知道我做错了什么。请给我建议。
关于VK
发布于 2016-06-30 19:49:51
要在路径"/organizations/Dept/CustomReports/Reports/Sample/“中创建id为"TESTREST2”的文件夹,请使用以下示例
curl -X PUT http://oblclaty24advvg.odc.vzwcorp.com:8080/reportservice/rest_v2/resources/organizations/Dept/CustomReports/Reports/Sample/TESTREST2?createFolders=true -H 'Content-Type:application/repository.folder+json' -d '{ "uri" :"/organizations/Dept/CustomReports/Reports/Sample/TESTREST2", "label":"Sample test", "description":"Sample Description", "permissionMask":"1", "version":"0" }' --user user:password希望这能有所帮助!
https://stackoverflow.com/questions/35287760
复制相似问题