Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Add OpenAPI spec versioning (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 authored Feb 22, 2024
1 parent e0fafe2 commit 9747df3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ hide_table_of_contents: true

import ApiDocMdx from '@theme/ApiDocMdx';

<ApiDocMdx id="jellyfish-rest-api" />
<ApiDocMdx id="jellyfish-rest-apix-0_2_1" />
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ hide_table_of_contents: true

import ApiDocMdx from '@theme/ApiDocMdx';

<ApiDocMdx id="jellyfish-rest-api" />
<ApiDocMdx id="jellyfish-rest-apix-0_3_0" />

0 comments on commit 9747df3

Please sign in to comment.