Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Updated README for #42
Browse files Browse the repository at this point in the history
  • Loading branch information
kleijnweb committed Jan 26, 2016
1 parent 718d0e4 commit df9bae0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ It would make more sense to name the parameter `order` instead of `body`, but th

Other parameters can be added to the signature as well, this is standard Symfony behaviour.

## Route Matching

To view the routes added by SwaggerBundle, you can use Symfony's `debug:router`. Route keys include the Swagger spec base filename to prevent collisions. For path parameters,
SwaggerBundle adds additional requirements to the routes. This way `/foo/{bar}` and `/foo/bar` wont conflict when `bar` is defined to be an integer. This also supports Swaggers `pattern`
and `enum` when dealing with string path parameters.

## Exception Handling

Any exceptions are caught, logged by the `@logger` service, and result in `application/vnd.error+json`. Routing failure results in a 404 response without `logref`.
Expand Down

0 comments on commit df9bae0

Please sign in to comment.