Skip to content

Commit

Permalink
Introduce OpenAPI specs (misskey-dev#4351)
Browse files Browse the repository at this point in the history
* wip

* wip

* wip

* Update index.ts

* Update gen-openapi-spec.ts

* Update api.ja-JP.md

* Fix

* Improve doc

* Update gen-openapi-spec.ts

* Update redoc.html

* Improve doc

* Update gen-openapi-spec.ts

* Improve doc

* Update CHANGELOG.md
  • Loading branch information
syuilo committed Feb 23, 2019
1 parent 68a6758 commit 52774bb
Show file tree
Hide file tree
Showing 173 changed files with 1,091 additions and 876 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ChangeLog

unreleasded
----------
* APIドキュメント刷新
* /api/v1/instance/peers 復活
* 「返信が遷移後も残り続ける問題を修正」([9beddc9](https://github.com/syuilo/misskey/commit/9beddc941a716f1322ae0b7d71d159edd642a399)) によって遷移前に返信が表示されなくなった問題を修正
* デッキモードにてユーザーのプロフィールを連続で見たとき、アクティビティや画像が前のユーザーのもののまま表示される問題を修正
Expand Down
Binary file added assets/api-doc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"bcryptjs": "2.4.3",
"bee-queue": "1.2.2",
"bootstrap-vue": "2.0.0-rc.11",
"cafy": "14.0.1",
"cafy": "15.1.0",
"chai": "4.2.0",
"chai-http": "4.2.1",
"chalk": "2.4.2",
Expand Down
24 changes: 24 additions & 0 deletions src/client/assets/redoc.html
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion src/docs/api.ja-JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ APIはすべてリクエストのパラメータ・レスポンスともにJSON

ストリーミングAPIも提供しています。

APIリファレンスもご確認ください
[APIリファレンス](/api-doc)もご確認ください

### レートリミット
Misskey APIにはレートリミットがあり、短時間のうちに多数のリクエストを送信すると、一定時間APIを利用することができなくなることがあります。
40 changes: 0 additions & 40 deletions src/docs/api/endpoints/style.styl

This file was deleted.

81 changes: 0 additions & 81 deletions src/docs/api/endpoints/view.pug

This file was deleted.

90 changes: 0 additions & 90 deletions src/docs/api/entities/drive-file.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions src/docs/api/entities/drive-folder.yaml

This file was deleted.

Loading

0 comments on commit 52774bb

Please sign in to comment.