add api documentation page

This commit is contained in:
Athou
2022-08-15 15:42:56 +02:00
parent e2340c2e98
commit 9c02eba0dc
11 changed files with 1447 additions and 65 deletions

View File

@@ -0,0 +1,12 @@
import { Loader } from "components/Loader"
import React, { Suspense } from "react"
export function ApiDocumentationPage() {
// swagger-ui is very large, load only on-demand
const SwaggerUI = React.lazy(() => import("swagger-ui-react"))
return (
<Suspense fallback={<Loader />}>
<SwaggerUI url="swagger/swagger.json" />
</Suspense>
)
}