Skip to content
Snippets Groups Projects
Commit 59655ea1 authored by René Rösner's avatar René Rösner
Browse files

Feat(planning#831): Added api doc component

parent e48b236d
No related branches found
No related tags found
1 merge request!89planning#831: API spec ressources
import React, { useEffect } from 'react'
function ApiDoc({ specUrl }) {
useEffect(() => {
import('rapidoc')
}, [])
return (
<>
<rapi-doc
spec-url={specUrl}
render-style="read"
show-header="false"
allow-server-selection="false"
allow-authentication="true"
/>
</>
)
}
export default ApiDoc
declare namespace JSX {
interface IntrinsicElements {
'rapi-doc': any;
}
}
......@@ -25,6 +25,7 @@
"json5": "2.2.3",
"minimist": "1.2.8",
"next": "13.4.19",
"rapidoc": "^9.3.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"remark": "^14.0.3",
......
......@@ -23,6 +23,11 @@
},
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
"declarations.d.ts"
],
"exclude": ["node_modules"]
}
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment