Add API reference page and WIP swagger file

This commit is contained in:
Billy Tat
2023-10-11 16:55:55 -07:00
parent 7f11aa00f4
commit 7b17550831
4 changed files with 5566 additions and 1 deletions
+18
View File
@@ -172,6 +172,24 @@ module.exports = {
},
},
],
[
'redocusaurus',
{
// Plugin Options for loading OpenAPI files
specs: [
{
id: 'rancher-api',
spec: 'openapi/swagger.json',
// route: '/api/',
},
],
// Theme Options for modifying how redoc renders them
theme: {
// Change with your site colors
primaryColor: '#1890ff',
},
},
],
],
plugins: [
[
+5533
View File
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
---
title: API Reference
---
import ApiDocMdx from '@theme/ApiDocMdx';
<ApiDocMdx id="rancher-api" />
+8 -1
View File
@@ -1262,6 +1262,13 @@
}
]
},
"contribute-to-rancher"
"contribute-to-rancher",
{
"type": "category",
"label": "API",
"items": [
"api/api-reference"
]
}
]
}