Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimascio authored Feb 13, 2020
1 parent 0a65104 commit 83c8f22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,14 @@ new OpenApiValidator({

### [Example Express API Server: Auto-wiring with operationHandlers](https://github.com/cdimascio/express-openapi-validator/tree/master/examples/2-eov-operations)

Don't want to manunally wire up your routes? express-openapi-validator has you covered. See full [example](https://github.com/cdimascio/express-openapi-validator/tree/master/examples/2-eov-operations)
Don't want to manunally wire up your routes? express-openapi-validator has you covered.

How to?
Use express-openapi-validator's OpenAPI vendor extensions. See the complete [source code] (https://github.com/cdimascio/express-openapi-validator/tree/master/examples/2-eov-operations) and [OpenAPI spec](https://github.com/cdimascio/express-openapi-validator/blob/master/examples/2-eov-operations/api.yaml#L39)

- Specifiy the base directory that contains your operationHandlers.

**Here's how**

- Specifiy the base directory that contains your `operationHandlers`.
- Use the `x-eov-operation-handler` OpenAPI vendor extension to specify the file that contains your operation handler
- Use the `x-eov-operation-id` OpenAPI vendor extension to specify the opeartion handler to invoke

Expand Down

0 comments on commit 83c8f22

Please sign in to comment.