-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shunsei
committed
Sep 30, 2024
1 parent
9b8d753
commit c6e3fec
Showing
2 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
## ディレクトリ構造 | ||
``` | ||
api | ||
├── bundle.yml ... APIに仕様を1つにまとめたYAMLファイル | ||
├── components ... 使い回すために部品化された仕様 | ||
│ ├── examples | ||
│ ├── responses | ||
│ └── schemas | ||
├── openapi.yml ... エントリーポイント | ||
├── paths ... 利用可能なエンドポイントとメソッド | ||
└── redocly.yml ... redocly-cliの設定ファイル | ||
``` | ||
|
||
## CLI | ||
|
||
バリデーション | ||
``` | ||
$ npm run lint | ||
``` | ||
|
||
APIの仕様を1つのYAMLファイルにまとめる | ||
``` | ||
$ npm run bundle | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters