You can use Confluence page’s attached file to display on your page using Open API (Swagger) Integration macro. Please follow these steps:
+ Click 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 your 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.
...