|
4 | 4 | // change it to true will make lrd to throw exception if rules in request class need to be changed
|
5 | 5 | // keep it false
|
6 | 6 | 'debug' => false,
|
7 |
| - 'document_name' => 'LRD', |
8 | 7 |
|
9 | 8 | /*
|
10 |
| - * Route where request docs will be served from |
| 9 | + * Route where request docs will be served from laravel app. |
11 | 10 | * localhost:8080/request-docs
|
12 | 11 | */
|
13 | 12 | 'url' => 'request-docs',
|
14 | 13 | 'middlewares' => [
|
15 |
| - //Example |
16 |
| - // \App\Http\Middleware\NotFoundWhenProduction::class, |
| 14 | + // \Rakutentech\LaravelRequestDocs\NotFoundWhenProduction::class, |
17 | 15 | ],
|
18 | 16 |
|
19 |
| - /* |
20 |
| - * Default headers shown on the request headers editor |
21 |
| - */ |
22 |
| - 'default_request_headers' => [ |
23 |
| - 'Accept' => 'application/json', |
24 |
| - 'X-CSRF-TOKEN' => '', |
25 |
| - 'Authorization' => 'Bearer', |
26 |
| - ], |
27 |
| - |
28 |
| - /* |
29 |
| - * Show development relevant metadata on endpoints |
30 |
| - */ |
31 |
| - 'show_development_metadata' => true, |
32 |
| - |
33 |
| - /** |
34 |
| - * Path to to static HTML if using command line. |
35 |
| - */ |
36 |
| - 'docs_path' => base_path('docs/request-docs/'), |
37 |
| - |
38 |
| - /** |
39 |
| - * Sorting route by and there is two types default(route methods), route_names. |
40 |
| - */ |
41 |
| - 'sort_by' => 'route_names', |
42 |
| - |
43 | 17 | //Use only routes where ->uri start with next string Using Str::startWith( . e.g. - /api/mobile
|
44 | 18 | 'only_route_uri_start_with' => '',
|
45 | 19 |
|
|
53 | 27 | '#^_tt#',
|
54 | 28 | ],
|
55 | 29 |
|
| 30 | + 'hide_meta_data' => false, |
| 31 | + |
| 32 | + // https://github.com/rakutentech/laravel-request-docs/pull/92 |
| 33 | + // When rules are put in other method than rules() |
56 | 34 | 'request_methods' => [
|
57 | 35 | 'rules',
|
58 | 36 | 'onCreate',
|
59 | 37 | 'onUpdate',
|
60 | 38 | ],
|
61 | 39 |
|
| 40 | + // No need to touch below |
| 41 | + // open api config |
| 42 | + // used to generate open api json |
62 | 43 | 'open_api' => [
|
63 | 44 | // default version that this library provides
|
64 | 45 | 'version' => '3.0.0',
|
|
0 commit comments