API doc
This commit is contained in:
parent
bef67fa275
commit
6f7832c09b
2 changed files with 25 additions and 1 deletions
24
src/client/assets/redoc.html
Normal file
24
src/client/assets/redoc.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Misskey API</title>
|
||||||
|
<!-- needed for adaptive design -->
|
||||||
|
<meta charset="utf-8"/>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
ReDoc doesn't change outer page styles
|
||||||
|
-->
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<redoc spec-url='/api.json'></redoc>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -16,7 +16,7 @@ export function kinds() {
|
||||||
endpoints: [],
|
endpoints: [],
|
||||||
descs: fromEntries(
|
descs: fromEntries(
|
||||||
Object.keys(locale)
|
Object.keys(locale)
|
||||||
.map(l => [l, locale[l].common.permissions[k] as string] as [string, string])
|
.map(l => [l, locale[l]._permissions[k] as string] as [string, string])
|
||||||
) as { [x: string]: string; }
|
) as { [x: string]: string; }
|
||||||
}] as [ string, IKindInfo ])
|
}] as [ string, IKindInfo ])
|
||||||
) as { [x: string]: IKindInfo; };
|
) as { [x: string]: IKindInfo; };
|
||||||
|
|
Loading…
Reference in a new issue