Kong Gateway Enterprise [ARCHIVE]
2.2.x
PermalinkUsing the Portal Files API
PermalinkPortal Files API Overview
The Portal Files API can be used as an alternative to the Portal CLI to manage dev portal content. Portal content must maintain a specific structure to render correctly, so it is generally recommended to use the CLI because it enforces that structure. The Portal Files API is useful for smaller tasks such as managing specification, content, or theme files outside the context of kong-portal-templates.
Parameter | Type | Description | Required | Examples |
---|---|---|---|---|
path |
string |
The path to the file. | yes |
content/example.txt , specs/petstore.json , themes/base/layouts/index.html |
contents |
string |
The contents of the file. | yes |
contents=@<file-location>.html , contents=@<spec-location>.json , contents=@<partial-location>.html |
Note: The @
symbol in a command automatically reads the file on disk and places
its contents into the contents argument.
PermalinkPOST a Content File
For more details about content files, see the Content File documentation.
PermalinkPOST a Spec File
For more details about specification files, see the Spec File documentation.
PermalinkPOST a Theme File
For more details about theme files, see the Theme File documentation.