Skip to content

Commit a6421e3

Browse files
(v2) Obsolete features and config
1 parent ece5754 commit a6421e3

File tree

6 files changed

+17
-834
lines changed

6 files changed

+17
-834
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ node_modules
1313
.php-cs-fixer.cache
1414
.DS_Store
1515
_ide_helper.php
16+
./ui/.astro
17+
.parcel-cache
18+

config/request-docs.php

Lines changed: 9 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,16 @@
44
// change it to true will make lrd to throw exception if rules in request class need to be changed
55
// keep it false
66
'debug' => false,
7-
'document_name' => 'LRD',
87

98
/*
10-
* Route where request docs will be served from
9+
* Route where request docs will be served from laravel app.
1110
* localhost:8080/request-docs
1211
*/
1312
'url' => 'request-docs',
1413
'middlewares' => [
15-
//Example
16-
// \App\Http\Middleware\NotFoundWhenProduction::class,
14+
// \Rakutentech\LaravelRequestDocs\NotFoundWhenProduction::class,
1715
],
1816

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-
4317
//Use only routes where ->uri start with next string Using Str::startWith( . e.g. - /api/mobile
4418
'only_route_uri_start_with' => '',
4519

@@ -53,12 +27,19 @@
5327
'#^_tt#',
5428
],
5529

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()
5634
'request_methods' => [
5735
'rules',
5836
'onCreate',
5937
'onUpdate',
6038
],
6139

40+
// No need to touch below
41+
// open api config
42+
// used to generate open api json
6243
'open_api' => [
6344
// default version that this library provides
6445
'version' => '3.0.0',

resources/dist/app.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)