use redoc instead of swagger ui to be able to update redux

This commit is contained in:
Athou
2023-12-29 11:01:57 +01:00
parent 4c532cf028
commit 2f1aa12e30
3 changed files with 696 additions and 2329 deletions

View File

@@ -1,12 +1,11 @@
import { Box } from "@mantine/core"
import SwaggerUI from "swagger-ui-react"
import "swagger-ui-react/swagger-ui.css"
import { RedocStandalone } from "redoc"
function ApiDocumentationPage() {
return (
// force white background because swagger is unreadable with dark theme
// force white background because documentation does not support dark theme
<Box style={{ backgroundColor: "#fff" }}>
<SwaggerUI url="openapi/openapi.json" />
<RedocStandalone specUrl="openapi/openapi.json" />
</Box>
)
}