[xwiki-users] Restfull URL to page in subwiki
I use Autohotkey to get text from a page with this url: UrlDownloadToFile, http:// Server:8080/xwiki/rest/wikis/wiki/subwiki/Main/pages/MyPage?outputSyntax=plain&xpage=plain C:\temp\MyText.txt How do i do this with curl from a *SUBWIKI*? curl -u Admin:admin "Server:8080/xwiki/rest/wikis/wiki/*subwiki*/Main/pages/MyPage?outputSyntax=plain&xpage=plain" is not working Thanks Volker
Hi,
On 27 Nov 2016, at 13:40, Volker Lapczynski <vlap1@gmx.net> wrote:
I use Autohotkey to get text from a page with this url:
UrlDownloadToFile, http:// Server:8080/xwiki/rest/wikis/wiki/subwiki/Main/pages/MyPage?outputSyntax=plain&xpage=plain C:\temp\MyText.txt
How do i do this with curl from a *SUBWIKI*?
curl -u Admin:admin "Server:8080/xwiki/rest/wikis/wiki/*subwiki*/Main/pages/MyPage?outputSyntax=plain&xpage=plain" is not working
See http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HPageresou... for the REST format For example: http://www.xwiki.org/xwiki/rest/wikis/platform/spaces/Main/pages/WebHome This will return the XML or JSON for the page. If what you want is the content as plain text you can simply use the /view/ action (instead of the REST API) as in: http://platform.xwiki.org/xwiki/bin/view/Main/WebHome?outputSyntax=plain&xpa... See http://platform.xwiki.org/xwiki/bin/view/DevGuide/Standard+URL+Format#HActio... for more details. Thanks -Vincent
Thanks Volker
On 11/27/2016 07:40 AM, Volker Lapczynski wrote:
I use Autohotkey to get text from a page with this url:
UrlDownloadToFile, http:// Server:8080/xwiki/rest/wikis/wiki/subwiki/Main/pages/MyPage?outputSyntax=plain&xpage=plain C:\temp\MyText.txt
How do i do this with curl from a *SUBWIKI*?
curl -u Admin:admin "Server:8080/xwiki/rest/wikis/wiki/*subwiki*/Main/pages/MyPage?outputSyntax=plain&xpage=plain" is not working
Should be: http://Server:8080/xwiki/rest/wikis/subwiki/spaces/Main/pages/MyPage -- Sergiu Dumitriu http://purl.org/net/sergiu/
participants (3)
-
Sergiu Dumitriu -
Vincent Massol -
Volker Lapczynski