From 6f7832c09b6502c2e077cabc7f8686b47d97d083 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 15 Feb 2020 23:13:59 +0900 Subject: [PATCH] API doc --- src/client/assets/redoc.html | 24 ++++++++++++++++++++++++ src/server/api/openapi/description.ts | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/client/assets/redoc.html diff --git a/src/client/assets/redoc.html b/src/client/assets/redoc.html new file mode 100644 index 0000000000..9803464cb1 --- /dev/null +++ b/src/client/assets/redoc.html @@ -0,0 +1,24 @@ + + + + Misskey API + + + + + + + + + + + + + diff --git a/src/server/api/openapi/description.ts b/src/server/api/openapi/description.ts index 9006dfbfa4..a4b79d9502 100644 --- a/src/server/api/openapi/description.ts +++ b/src/server/api/openapi/description.ts @@ -16,7 +16,7 @@ export function kinds() { endpoints: [], descs: fromEntries( 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 [ string, IKindInfo ]) ) as { [x: string]: IKindInfo; };