我们有任何免费工具可以从 linux 机器上编辑 Confluence 页面吗?欣赏回应。谢谢。
问问题
188 次
1 回答
1
从 Linux 机器编辑到底是什么意思?您是否希望通过终端编辑页面?如果是这样 - 您可以使用 ConfluenceREST API
并curl
编辑您的页面:
curl -u admin:admin -X PUT -H 'Content-Type: application/json' -d'{"id":"3604482","type":"page","title":"new page","space":{"key":"TST"},"body":{"storage":{"value":"<p>This is the updated text for the new page</p>","representation":"storage"}},"version":{"number":2}}' http://URL:PORT/confluence/rest/api/content/3604482 | python -mjson.tool
上面curl
将编辑 Confluence 中已经存在的页面。您可以在此处查看 REST API 示例
于 2017-04-03T10:16:20.713 回答