Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1220

REST API ... calls not working

$
0
0

I have only been using XWiki for a short time. I am running an XWiki instance, version 16.10.2, as a Docker container. The instance is running and doing what it is supposed to do. Since I want to create many pages, I would like to use the REST API … but nothing is working.

My REST API calls, for example, retrieving the list of all subwikis, are syntactically correct (tested in the XWiki Cloud: https://XXXX.demo.xwiki.com), but in my local instance, the request only returns garbage.

Here’s the call
curl -u user:pw -X GET http://localhost:8021/xwiki/rest/wikis?media=json … returns only a mess of html code

I have two questions:

  • could a configuration error cause this behavior? i appended ‘xwiki.rest=1’ in xwiki.cfg

  • are there other tutorials, howtos, videos (videos on youtube are not helpul)? I checked reddit, but there is nothing valuable.

Every tip is welcome.

Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1220

Trending Articles