Multiple APIs
This documentation is for the preview version of the Dev Portal. If you are using the legacy developer portal, please refer to the docs.
Dev Portal supports creating documentation and API references for multiple APIs and can work with as many OpenAPI documents as you need.
In order to do this you will need to modify the Dev Portal Configuration file to include additional APIs.
Configuration
Using multiple APIs is a configuration setting that you can add in the Dev Portal Configuration file.
Step 1: Add your APIs
First, create a new array in your configuration file that lists each API you want to include:
Code(typescript)
Step 2: Add navigation
Create a navigation array for your sidebar:
Code(typescript)
Step 3: Update your config
Modify your Dev Portal Configuration file to include these arrays:
Code(typescript)
Make sure that:
- The
path
in each API config matches thehref
in the navigation - Your OpenAPI files are placed in the correct location as specified in the
input
field - The
label
in navigation matches what you want to display in the sidebar
You don't necessarily need to add the APIs to your sidebar, you can also put them into the top navigation or link to them from your docs.