# Add OpenAPI descriptions Transform your OpenAPI description YAML or JSON file into interactive documentation by adding it to your project. You can add one or multiple OpenAPI descriptions to your project. Either add individual description files to your project alongside your other content, or use a [classic catalog](/docs/realm/config/catalog-classic) to showcase your REST APIs alongside GraphQL and AsyncAPI APIs. If you are using a `sidebars.yaml` file to organize your sidebar navigation menu, you must add your OpenAPI descriptions to it for them to display on your sidebar navigation menu. ## Before you begin Make sure you have the following: - an OpenAPI description file or files in YAML or JSON format (all versions of OpenAPI are supported) ## Include OpenAPI files in your project If you only have one or two OpenAPI description files, and you do not have a `sidebars.yaml` file in your project, to add an OpenAPI description to your project, place the file or files in your project either at the root or in a folder. Afterward, the OpenAPI reference documentation is automatically added to your sidebar when you run your project. If you have a `sidebars.yaml` file in your project, you must add your OpenAPI description to your `sidebars.yaml` file for it to be included in your sidebar navigation menu. ## Use the sidebars.yaml file If you have a `sidebars.yaml` file in your project, you must add any files, including OpenAPI descriptions, you want displayed in your sidebar navigation menu to it. For more information on configuring a `sidebars.yaml` file for your project, see [Sidebar configuration](/docs/realm/navigation/sidebars). To add an OpenAPI file to your project with a `sidebars.yaml` file, add the `page` and `label` keys with the corresponding values for the OpenAPI description to your `sidebars.yaml` file, as in the following example: ```yaml sidebars.yaml - page: apis/sample-api.yaml label: Sample API ``` If you have multiple API descriptions, you can group them to better organize your sidebar navigation menu. ### Use the `group` key for multiple descriptions If you have multiple OpenAPI descriptions, you can use a `group` key for each description so that the different endpoints are only revealed when selected. To add multiple OpenAPI descriptions using `group` keys, update your `sidebars.yaml` file, as in the following example: ```yaml sidebars.yaml - group: Sample product 1 API items: - page: apis/sample-api-1.yaml label: Sample product 1 API - group: Sample product 2 API items: - page: apis/sample-product-2.yaml label: Sample product 2 API ``` ## Resources - **[API catalog configuration](/docs/realm/config/catalog-classic)** - Organize multiple API descriptions with catalogs for better user experience and navigation between different APIs - **[Sidebar navigation setup](/docs/realm/navigation/sidebars)** - Configure navigation structures to help users discover and access your API documentation content - **[Replay API explorer](/docs/realm/content/api-docs/replay)** - Add interactive API testing capabilities to your reference documentation with built-in mock servers and request builders - **[OpenAPI extensions](/docs/realm/content/api-docs/openapi-extensions)** - Use custom extensions in your API descriptions to create richer, more detailed documentation with enhanced features - **[OpenAPI configuration reference](/docs/realm/config/openapi)** - Complete configuration options for customizing OpenAPI description rendering, styling, and behavior in your reference documentation