@@ -22,10 +22,10 @@ By default, the generated documentation will be accessible via `/api-documentati
22
22
23
23
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 )
24
24
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 ` :
26
26
``` php
27
27
[
28
- /*
28
+ /*
29
29
|--------------------------------------------------------------------------
30
30
| Rest Documentation
31
31
|--------------------------------------------------------------------------
@@ -137,25 +137,12 @@ First you'll need to generate a dedicated `RestDocumentationServiceProvider` cla
137
137
php artisan rest:documentation-provider
138
138
```
139
139
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:
141
141
``` 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 [
155
143
// ...
156
- \App\Providers\RestDocumentationServiceProvider::class
157
- ]
158
- ]
144
+ App\Providers\RestDocumentationServiceProvider::class
145
+ ];
159
146
```
160
147
161
148
You are then free to declare your own routes in your freshly generated service provider:
0 commit comments