Skip to content

Commit

Permalink
(v2) Obsolete features and config
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Feb 18, 2023
1 parent ece5754 commit a6421e3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 834 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ node_modules
.php-cs-fixer.cache
.DS_Store
_ide_helper.php
./ui/.astro
.parcel-cache

37 changes: 9 additions & 28 deletions config/request-docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,16 @@
// change it to true will make lrd to throw exception if rules in request class need to be changed
// keep it false
'debug' => false,
'document_name' => 'LRD',

/*
* Route where request docs will be served from
* Route where request docs will be served from laravel app.
* localhost:8080/request-docs
*/
'url' => 'request-docs',
'middlewares' => [
//Example
// \App\Http\Middleware\NotFoundWhenProduction::class,
// \Rakutentech\LaravelRequestDocs\NotFoundWhenProduction::class,
],

/*
* Default headers shown on the request headers editor
*/
'default_request_headers' => [
'Accept' => 'application/json',
'X-CSRF-TOKEN' => '',
'Authorization' => 'Bearer',
],

/*
* Show development relevant metadata on endpoints
*/
'show_development_metadata' => true,

/**
* Path to to static HTML if using command line.
*/
'docs_path' => base_path('docs/request-docs/'),

/**
* Sorting route by and there is two types default(route methods), route_names.
*/
'sort_by' => 'route_names',

//Use only routes where ->uri start with next string Using Str::startWith( . e.g. - /api/mobile
'only_route_uri_start_with' => '',

Expand All @@ -53,12 +27,19 @@
'#^_tt#',
],

'hide_meta_data' => false,

// https://github.com/rakutentech/laravel-request-docs/pull/92
// When rules are put in other method than rules()
'request_methods' => [
'rules',
'onCreate',
'onUpdate',
],

// No need to touch below
// open api config
// used to generate open api json
'open_api' => [
// default version that this library provides
'version' => '3.0.0',
Expand Down
1 change: 0 additions & 1 deletion resources/dist/app.js

This file was deleted.

Loading

0 comments on commit a6421e3

Please sign in to comment.