Use Confluence page's attached file
You can use Confluence page’s attached file to display on your page using Open API (Swagger) Integration macro. Please follow these steps:
+ Open your Confluence page, click on … button, choose Attachments to open Attachments page of your page to attach file
+ On Attachments page, click Choose File to choose your Open API definition in json or yaml format, click Attach to attach your file to this Confluence page
+ After your file is attached successfully, you will see the detail page. In this page, you can right click on your file, choose Copy link address to copy your attached file URL.
+ Back to your Confluence page, edit your page, add or edit your Open API(Swagger) Integration macro. Paste the link you copied in previous step to URL field.
+ Click Save and see your attached file is displayed in your Confluence page.