Hey,
I'm trying to create a page with an HTTP api and I would like this page to include a few macros. But I can't find any documentation on how to do so with XML.
I've found documentation for the UI
Something like this (which is for Jira issue key)
<ac:structured-macro ac:name='jira'>
<ac:parameter ac:name='key'>#{issue_key}</ac:parameter>
</ac:structured-macro>
But for page properties.
I know how to create tables, but I reckon they need to be wrapped in something.
The easiest thing to do is to create a page with some example macros with the settings you want, then you can view storage to see how the XHTML is formatted.
There is also a source editor (which is what I use_) to see the storage format. A useful tool for fixing pages.
Thanks, Bill!
For anyone reading this, this is the API I've used:
GET /wiki/rest/api/content/:id?expand=body.storage
And under key `body.storage.value` you'll find an XML describing the page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.