(XWiki API REST を使用して) BlogPost を作成する必要があります。しかし、私はRESTの使い方を知りません...このコマンドで:
$ curl -u Admin:admin -X PUT --data-binary "@newpage.xml" -H "Content-Type: application/xml" http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Main/pages/NewPage
そして、この XML ファイルで:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<page xmlns="http://www.xwiki.org">
<title>Hello world</title>
<syntax>xwiki/2.0</syntax>
<content>This is a new page</content>
</page>
スペースに Page を作成しますMain
。しかし、スペースに BlogPost が必要Blog
です。使用する必要があるマークアップは何ですか? (このコマンドはこちらで見つかりました)