diff --git a/docs/guide/generating-openapi-documents.md b/docs/guide/generating-openapi-documents.md index 1ac0f5a1..bcf7cf3a 100644 --- a/docs/guide/generating-openapi-documents.md +++ b/docs/guide/generating-openapi-documents.md @@ -1,8 +1,8 @@ # Generating OpenAPI documents -## `./bin/openapi` +## `./vendor/bin/openapi` -`swagger-php` includes a command line tool `./bin/openapi`. This can be used to generate OpenAPI documents. +`swagger-php` includes a command line tool `./vendor/bin/openapi`. This can be used to generate OpenAPI documents. ```shell > ./vendor/bin/openapi app -o openapi.yaml @@ -18,7 +18,7 @@ The `--format` option can be used to force a specific format. For a list of all available options use the `-h` option ```shell -> ./bin/openapi -h +> ./vendor/bin/openapi -h Usage: openapi [--option value] [/path/to/project ...] diff --git a/docs/index.md b/docs/index.md index e84a4cbe..84a7a3fa 100644 --- a/docs/index.md +++ b/docs/index.md @@ -38,7 +38,7 @@ Add `swagger-php` attributes or annotations to your source code. ### 3. Generate OpenAPI documentation ```shell -> ./bin/openapi src -o openapi.yaml +> ./vendor/bin/openapi src -o openapi.yaml ``` ### 4. Explore and interact with your API