[Slim] Update Readme (#1995)

* Add OpenAPI Generator link to readme

* Update Readme example to match config
This commit is contained in:
Yuriy Belenko 2019-01-27 15:05:42 +05:00 committed by William Cheng
parent 706192980c
commit 4f8164e713
3 changed files with 30 additions and 12 deletions

View File

@ -1,6 +1,7 @@
# {{packageName}} - PHP Slim Server library for {{appName}}
[Slim Framework Documentation](https://www.slimframework.com/docs/)
* [OpenAPI Generator](https://openapi-generator.tech)
* [Slim Framework Documentation](https://www.slimframework.com/docs/)
## Requirements
@ -79,10 +80,15 @@ $ composer phplint
## Show errors
Change line in `./index.php`:
Switch on option in `./index.php`:
```diff
--- $router = new SlimRouter();
+++ $router = new SlimRouter(['settings' => ['displayErrorDetails' => true]]);
/**
* When true, additional information about exceptions are displayed by the default
* error handler.
* Default: false
*/
--- // 'displayErrorDetails' => false,
+++ 'displayErrorDetails' => true,
```
{{#generateApiDocs}}

View File

@ -1,6 +1,7 @@
# php-base - PHP Slim Server library for OpenAPI Petstore *_/ ' \" =end -- \\r\\n \\n \\r
[Slim Framework Documentation](https://www.slimframework.com/docs/)
* [OpenAPI Generator](https://openapi-generator.tech)
* [Slim Framework Documentation](https://www.slimframework.com/docs/)
## Requirements
@ -79,10 +80,15 @@ $ composer phplint
## Show errors
Change line in `./index.php`:
Switch on option in `./index.php`:
```diff
--- $router = new SlimRouter();
+++ $router = new SlimRouter(['settings' => ['displayErrorDetails' => true]]);
/**
* When true, additional information about exceptions are displayed by the default
* error handler.
* Default: false
*/
--- // 'displayErrorDetails' => false,
+++ 'displayErrorDetails' => true,
```
## API Endpoints

View File

@ -1,6 +1,7 @@
# php-base - PHP Slim Server library for OpenAPI Petstore
[Slim Framework Documentation](https://www.slimframework.com/docs/)
* [OpenAPI Generator](https://openapi-generator.tech)
* [Slim Framework Documentation](https://www.slimframework.com/docs/)
## Requirements
@ -79,10 +80,15 @@ $ composer phplint
## Show errors
Change line in `./index.php`:
Switch on option in `./index.php`:
```diff
--- $router = new SlimRouter();
+++ $router = new SlimRouter(['settings' => ['displayErrorDetails' => true]]);
/**
* When true, additional information about exceptions are displayed by the default
* error handler.
* Default: false
*/
--- // 'displayErrorDetails' => false,
+++ 'displayErrorDetails' => true,
```
## API Endpoints