Skip to content

Commit

Permalink
Reference openapi CLI tools as ./vendor/bin/openapi (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Sep 26, 2024
1 parent ff78ab1 commit 68a19b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/guide/generating-openapi-documents.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 ...]

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68a19b8

Please sign in to comment.