Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix versioning issues with OAS and insomnia buttons #8418

Merged
merged 2 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api-specs/Gateway-EE/3.9/kong-ee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6236,7 +6236,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
title: Enterprise Kong Admin API
version: 3.8.0
version: 3.9.0
openapi: 3.0.0
paths:
/:
Expand Down
2 changes: 1 addition & 1 deletion api-specs/Gateway-EE/latest/kong-ee.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6112,7 +6112,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
title: Enterprise Kong Admin API
version: 3.8.0
version: 3.9.0
openapi: 3.0.0
paths:
/:
Expand Down
2 changes: 1 addition & 1 deletion api-specs/Gateway-OSS/3.9/kong-oss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3622,7 +3622,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
title: Kong Admin API
version: 3.8.0
version: 3.9.0
openapi: 3.0.0
paths:
/:
Expand Down
2 changes: 1 addition & 1 deletion api-specs/Gateway-OSS/latest/kong-oss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3622,7 +3622,7 @@ info:
name: Apache 2.0
url: 'https://www.apache.org/licenses/LICENSE-2.0.html'
title: Kong Admin API
version: 3.8.0
version: 3.9.0
openapi: 3.0.0
paths:
/:
Expand Down
3 changes: 3 additions & 0 deletions app/_plugins/generators/pages/version_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def set_release_data # rubocop:disable Metrics/AbcSize

# Add a `major_minor_version` property which is used for cloudsmith install pages
@page.data['major_minor_version'] = release.value.gsub('.x', '').gsub('.', '')

# Add a `short_version` property which is used for spec filenames
@page.data['short_version'] = release.value.gsub('.x', '')
end

def release
Expand Down
16 changes: 14 additions & 2 deletions app/_src/gateway/admin-api/index_latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,22 @@ title: Kong Gateway Admin API

The Kong Admin API is documented in OpenAPI format:

{% if_version lte:3.7.x %}

| Spec | Insomnia link |
|-------|---------------|
| [Enterprise API](/gateway/api/admin-ee/latest/){:target="_blank"} | <a href="https://insomnia.rest/run/?label=Kong%20Gateway%20Enterprise%20{{page.short_version}}&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-EE%2F{{page.short_version}}%2Fkong-ee-{{page.short_version}}.yaml" target="_blank"> <img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia" class="no-image-expand"></a> |
| [Open source API](/gateway/api/admin-oss/latest/){:target="_blank"} | <a href="https://insomnia.rest/run/?label=Kong%20Gateway%20OSS%20{{page.short_version}}&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-OSS%2F{{page.short_version}}%2Fkong-oss-{{page.short_version}}.yaml" target="_blank"><img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia" class="no-image-expand"></a> |

{% endif_version %}
{% if_version gte:3.8.x %}

| Spec | Insomnia link |
|-------|---------------|
| [Enterprise API](/gateway/api/admin-ee/latest/){:target="_blank"} |<a href="https://insomnia.rest/run/?label=Kong%20Gateway%20Enterprise%203.4&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-EE%2F3.4%2Fkong-ee-3.4.json" target="_blank"><img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia"></a> |
| [Open source API](/gateway/api/admin-oss/latest/){:target="_blank"} | <a href="https://insomnia.rest/run/?label=Kong%20Gateway%20Open%20Source%203.4&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-OSS%2F3.4%2Fkong-oss-3.4.json" target="_blank"><img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia"></a>|
| [Enterprise API](/gateway/api/admin-ee/latest/){:target="_blank"} |<a href="https://insomnia.rest/run/?label=Kong%20Gateway%20Enterprise%20{{page.short_version}}&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-EE%2F{{page.short_version}}%2Fkong-ee.yaml" target="_blank"><img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia" class="no-image-expand"></a> |
| [Open source API](/gateway/api/admin-oss/latest/){:target="_blank"} | <a href="https://insomnia.rest/run/?label=Kong%20Gateway%20OSS%20{{page.short_version}}&uri=https%3A%2F%2Fraw.githubusercontent.com%2FKong%2Fdocs.konghq.com%2Fmain%2Fapi-specs%2FGateway-OSS%2F{{page.short_version}}%2Fkong-oss.yaml" target="_blank"> <img src="https://insomnia.rest/images/run.svg" alt="Run in Insomnia" class="no-image-expand"></a> |

{% endif_version %}

See the following links for individual entity documentation:

Expand Down