Rest api create page

Hi
I can create new page using rest api, but I really need to create table in my page. Is there any way to create table using rest api or using xwiki macros ?

thanks

Hi. If you can create a new page then you can control the content and thus you can use the wiki markup syntax for tables. What’s the problem with that?

See https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiSyntax/?syntax=2.1&section=Tables for the syntax

The problem is that xwiki takes only first line from xml. So the table look like in attachment.
test20

Thanks

See https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HFormatsoffiles and " Example of a file for a page". You should be able to use multiline content in the <content>...</content> xml tag.

Thanks finally i found the solution. I have to set new line in xml using 2 delimiter