Manage Templates
The following section describes how to create and use product templates in a Swagger Portal instance directly via its APIs.
A template, in terms of Portal, is a combination of the same elements as Portal product:
- metadata (also known as template settings),
- API reference documents (for example, an OpenAPI document),
- and Markdown or HTML documents.
The following table outlines the settings per template:
| Setting Name | Description |
|---|---|
name | The name of the template that will appear in the template gallery (maximum length is 22 characters). |
notes | Additional notes about the template. |
slug | The URL segment to be appended to the portal URL to uniquely reference the template https://<SUBDOMAIN>.portal.swaggerhub.com/<SLUG>. |
productDescription | The description that will be added to products created from the template |
default | Setting a template as default encourages all users to apply it when creating new products. Defaults to false. |