diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-15 23:13:59 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-15 23:13:59 +0900 |
| commit | 6f7832c09b6502c2e077cabc7f8686b47d97d083 (patch) | |
| tree | a8b45b2f2166775d2ce58aa6f4c8667d496e3aa6 /src | |
| parent | Update trend.ts (diff) | |
| download | sharkey-6f7832c09b6502c2e077cabc7f8686b47d97d083.tar.gz sharkey-6f7832c09b6502c2e077cabc7f8686b47d97d083.tar.bz2 sharkey-6f7832c09b6502c2e077cabc7f8686b47d97d083.zip | |
API doc
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/assets/redoc.html | 24 | ||||
| -rw-r--r-- | src/server/api/openapi/description.ts | 2 |
2 files changed, 25 insertions, 1 deletions
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 @@ +<!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> 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; }; |