Skip to content

Commit d9a5903

Browse files
authored
Merge pull request #70 from 15g-lucas/doc/update-documentation-configuration
Detailed configuration documentation
2 parents 99b30d9 + ecd42cc commit d9a5903

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

content/4.digging-deeper/8.documentation.md

+6-19
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ By default, the generated documentation will be accessible via `/api-documentati
2222

2323
To achieve this, you need to be familiar with OpenApi. If you aren't, please consult the [documentation](https://spec.openapis.org/oas/v3.1.0)
2424

25-
You can to configure OpenApi information, servers and security in the configuration:
25+
You can to configure OpenApi information, servers and security in your configuration file `config/rest.php`:
2626
```php
2727
[
28-
/*
28+
/*
2929
|--------------------------------------------------------------------------
3030
| Rest Documentation
3131
|--------------------------------------------------------------------------
@@ -137,25 +137,12 @@ First you'll need to generate a dedicated `RestDocumentationServiceProvider` cla
137137
php artisan rest:documentation-provider
138138
```
139139

140-
Then add the freshly generated service provider to your providers in your `config/app.php` file:
140+
Then add the freshly generated service provider to your providers in your `bootstrap/providers.php` file:
141141
```php
142-
[
143-
/*
144-
|--------------------------------------------------------------------------
145-
| Autoloaded Service Providers
146-
|--------------------------------------------------------------------------
147-
|
148-
| The service providers listed here will be automatically loaded on the
149-
| request to your application. Feel free to add your own services to
150-
| this array to grant expanded functionality to your applications.
151-
|
152-
*/
153-
154-
'providers' => [
142+
return [
155143
// ...
156-
\App\Providers\RestDocumentationServiceProvider::class
157-
]
158-
]
144+
App\Providers\RestDocumentationServiceProvider::class
145+
];
159146
```
160147

161148
You are then free to declare your own routes in your freshly generated service provider:

0 commit comments

Comments
 (0)