Skip to content

Commit 9299b1a

Browse files
dkarlovidunglas
authored andcommitted
Document the Swagger command usage (#389)
* Document the Swagger command usage * Update swagger.md
1 parent d1038d7 commit 9299b1a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/swagger.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,15 @@ swagger_ui:
249249
```
250250
251251
Change `/docs` to your desired URI you wish Swagger to be accessible on.
252+
253+
## Using the Swagger Command
254+
255+
You can also dump your current Swagger documentation using the provided command:
256+
257+
```
258+
$ docker-compose exe php bin/console api:swagger:export
259+
# Swagger documentation in JSON format...
260+
261+
$ docker-compose exe php bin/console --yaml
262+
# Swagger documentation in YAML format...
263+
```

0 commit comments

Comments
 (0)