mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
[Slim] Update Readme (#1995)
* Add OpenAPI Generator link to readme * Update Readme example to match config
This commit is contained in:
parent
706192980c
commit
4f8164e713
@ -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}}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user