Switch from XML-RPC to REST
Issue #23
resolved
The XML-RPC interface to Confluence is deprecated and not actively maintained. I should switch to the REST API, which should provide everything I need. XML-RPC methods I use at the moment are:
confluence2.getPage
by space key and page title: can be replaced byGET /rest/api/content?spaceKey=foo&title=bar
.confluence2.renderContent
for page ID: can be replaced byGET /rest/api/content/{page_id}?expand=body.styled_view
(but need to clarify the presence of\n
sequences in the returned HTML).
After making this change, there should be no need for the Confluence admin to enable the Remote API; I should update the docs and the Marketplace listing to reflect this.
Comments (6)
-
reporter -
reporter - edited description
-
reporter - edited description
-
reporter I've replaced the
confluence2.getPage
call in version 0.4.1. -
reporter I've replaced the second and final call (
confluence2.renderContent
) in 0.5.0. -
reporter - changed status to resolved
- Log in to comment
The new API is documented here and blogged about here.