Chapter 7. Using OAS 3.0 with 3scale
This section provides information about using OpenAPI Specification 3.0 (OAS 3.0) with 3scale.
3scale 2.8 introduces OAS 3.0 with a limited support. For example:
-
swagger-ui
has been updated in the Developer Portal to support OAS 3.0 -
swagger-ui
is now included as a webpack asset (node_modules
). Formerly, it was added from Content Delivery Networks (CDNs). -
In the Admin Portal, any new OAS 3.0 document will be identified automatically and processed accordingly, by using the features provided by
swagger-ui
. Note that this functionality requires a configuration on the Developer Portal side.
You can add OAS 3.0 specifications to ActiveDocs and display them in the Developer Portal, considering the following points:
- You must upgrade the templates manually.
- The ActiveDoc will not have additional features; such as credential injection when attempting requests, and autocompletion using real data like service name.
7.1. Configuring the Developer Portal with OAS 3.0 Copy linkLink copied to clipboard!
To configure OAS 3.0 in the Developer Portal, add a new page or replace the default Documentation page with the following snippet:
This snippet includes the new version of swagger-ui
, and renders the first ActiveDoc available. Note that it will also render OAS 2.0 but without any of the usual ActiveDocs features.