Dear all,

Please ignore the previous email.

After a re-start of tomcat web server, rest api can return correct 
information for spaces of newly created wiki when browsing 
http://localhost:8080/xwiki/rest/wikis/wiki2/spaces.

Regarding the problem of showing spaces in XEclipse, the bug is that I 
send the wrong user name "Admin" to the server, which should be 
"wiki2.Admin". This fixes the issue. I need to figure out a way of 
storing various user names and passwords for different wikis for one 
single XEM instance in XEclipse, but this is irrelevant to the REST API.

Best regards
Jun Han

On 07/07/2011 11:36 AM, Jun Han wrote:
> Dear all,
>
> After deploying XEM-3.2-snapshot, I created a wiki called wiki2.
> In XEclipse or browse http://localhost:8080/xwiki/rest/wikis, three 
> wikis can be found,
> xwiki -> main wiki
> templatexe -> template
> wiki2 -> newly created wiki
>
> Then I tried to navigate in XEclipse or just use a browser.
> Information for all the spaces is not fetched via the URL 
> http://localhost:8080/xwiki/rest/wikis/wiki2/spaces
>
> However, if I type the URL in the browser
> 1. http://localhost:8080/xwiki/rest/wikis/wiki2/spaces/Main
> 2. http://localhost:8080/xwiki/rest/wikis/wiki2/spaces/Main/pages
> The information for Main space and its pages shows up correctly.
>
> I am not sure if this is a bug in REST API.
>
> Best regards
>
> Jun Han

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to