Skip to content

Commit

Permalink
修改文档生成命令 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohe4966 authored Apr 18, 2023
1 parent cb66315 commit 3c8c41d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/dev/generate/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ imi-apidoc 会根据 `@Route` 注解、`@param` 注释,自动补足相关信

**生成命令:**

Yaml 格式: `imi doc/api --to api.yml`
Yaml 格式: `vendor/bin/imi-swoole doc/api api.yml`

Json 格式: `imi doc/api --to api.json`
Json 格式: `vendor/bin/imi-swoole doc/api api.json`

指定扫描的命名空间:`imi doc/api --to api.json --namespace "ImiApp\Controller1,ImiApp\Controller2"`
指定扫描的命名空间:`vendor/bin/imi-swoole doc/api api.json --namespace "ImiApp\Controller1,ImiApp\Controller2"`

**效果:**

Expand Down

0 comments on commit 3c8c41d

Please sign in to comment.