From 9747df3f6289ebde82ecf3b1ac6973dbe34a4a84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rados=C5=82aw=20Szuma?=
<56085570+Rados13@users.noreply.github.com>
Date: Thu, 22 Feb 2024 14:30:54 +0100
Subject: [PATCH] Add OpenAPI spec versioning (#86)
---
docusaurus.config.js | 10 ++++++++++
.../for_developers/api_reference/rest_api.md | 2 +-
.../for_developers/api_reference/rest_api.md | 2 +-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 2c175588..625f7a32 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -60,6 +60,16 @@ const config = {
spec: 'https://raw.githubusercontent.com/jellyfish-dev/jellyfish/main/openapi.yaml',
route: '/examples/using-single-yaml/',
},
+ {
+ id: 'jellyfish-rest-apix-0_2_1',
+ spec: 'https://raw.githubusercontent.com/jellyfish-dev/jellyfish/v0.2.1/openapi.yaml',
+ route: '/examples/using-single-yaml-0_2_1/',
+ },
+ {
+ id: 'jellyfish-rest-apix-0_3_0',
+ spec: 'https://raw.githubusercontent.com/jellyfish-dev/jellyfish/v0.3.0/openapi.yaml',
+ route: '/examples/using-single-yaml-0_3_0/',
+ }
],
// Theme Options for modifying how redoc renders them
theme: {
diff --git a/versioned_docs/version-0.2.1/for_developers/api_reference/rest_api.md b/versioned_docs/version-0.2.1/for_developers/api_reference/rest_api.md
index 2fe2f807..bad2cfe2 100644
--- a/versioned_docs/version-0.2.1/for_developers/api_reference/rest_api.md
+++ b/versioned_docs/version-0.2.1/for_developers/api_reference/rest_api.md
@@ -5,4 +5,4 @@ hide_table_of_contents: true
import ApiDocMdx from '@theme/ApiDocMdx';
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/versioned_docs/version-0.3.0/for_developers/api_reference/rest_api.md b/versioned_docs/version-0.3.0/for_developers/api_reference/rest_api.md
index 2fe2f807..a33ca398 100644
--- a/versioned_docs/version-0.3.0/for_developers/api_reference/rest_api.md
+++ b/versioned_docs/version-0.3.0/for_developers/api_reference/rest_api.md
@@ -5,4 +5,4 @@ hide_table_of_contents: true
import ApiDocMdx from '@theme/ApiDocMdx';
-
\ No newline at end of file
+
\ No newline at end of file