![how to use confluence for documentation how to use confluence for documentation](https://wiki.almworks.com/download/attachments/32223058/confluence_gadget_page.png)
Well, turns out even though returned HTTP 200 OK, the URL was wrong. What am I doing wrong? Or is there a another way to produce results similar to Swagger Confluence demo? Starting to think this is an authorization issue. Same also happens when accessing the URL with just browser.Īlso numerous other attempts at calling the Confluence REST API with documented ways resulted in 404.
![how to use confluence for documentation how to use confluence for documentation](https://trackdaytrailer.com/images/how-to-include-the-current-date-in-confluence-document.jpg)
īut calling the URL with REST Easy (Firefox Plugin) with GET and providing userid & pass as Basic Authentication returns 200 OK HTTP status and seems to return my Confluence Dashboard (parent of the spaces top-level page). Is the REST API enabled by default and is there a means to control the usage?Īlso getting a bit weird results when trying to call the REST API (although I do get responses so that leads me to think the URL is correct). The same article says the XML-RPC and SOAP APIs this setting enables are deprecated on Confluence 5.5+.
![how to use confluence for documentation how to use confluence for documentation](https://confluence.atlassian.com/doc/blog/files/777023403/777023387/1/1441053513479/product-requirement-jira-links.png)
I found the general "Enable Remote API" configuration (which seemed to be enabled as default) under General Configuration -> Further Configuration as described in this article. How is this determined? I'm using an admin user. The same requirements mention "A Confluence User with access to the REST API". This is also described as a requirement in the swagger-confluence overview page. However, Confluence REST API page suggests the current API should have been the same since Confluence Server 5.5. in Stackoverflow, as the API seems to have been changing some. It's caused a bit of confusion while searching for Confluence REST API examples, e.g. 15:08:17.728 INFO - n.s.s.c.s.i.XHtmlToConfluenceServiceImpl : Posting XHTML to Confluence.Įxception in thread "main" .HttpClientErrorException: 404 Not Found 15:08:16.888 INFO - n.s.s.c.s.i.AsciiDocToXHtmlServiceImpl : XHTML5 Conversion Complete! Io/console not supported tty will not be manipulated 15:08:12.178 INFO - n.s.s.c.s.i.AsciiDocToXHtmlServiceImpl : Converting AsciiDoc to XHTML5. Output (404 Not found): 15:08:12.177 INFO - n.s.s.c.s.i.SwaggerToAsciiDocServiceImpl : AsciiDoc Conversion Complete! jar should (according to my understanding) operate like this (used this page for credentials Base64 encoding): java -jar / -u "http(s)://:/confluence/rest/api/" -b "" -k "" -g "true" -i "true" -s "" -t "" -m "single" Note: if you do add these actions, remember to enable "Delay execution of subsequent rule actions until we've received a response for this webhook" in the Send web request action.I'm trying to upload my Swagger JSON schema (myapi.json) into Atlassian Confluence using the swagger- confluence standalone tool. "value": "This space is linked to Jira project If my email is and my API token is 12345, here is how it should look like:
#How to use confluence for documentation software#
You can restrict the trigger to a specific project type - you may want the Confluence space to be created only for Software projects. Save the generated token in a safe place. We will use Confluence Cloud API to automatically create a new space. Which made me think: what if we could automatically create a new Confluence space when a new Jira project is created? It would save us a lot of time and ensure we always have a Confluence space associated to a Jira project.
![how to use confluence for documentation how to use confluence for documentation](https://confluence.atlassian.com/doc/files/139380/1005333595/10/1618290478688/jira-issues-select-issues.png)
The automation team recently released a new trigger: Project created.