Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/auto-doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@
| Paths to additional documentation
|--------------------------------------------------------------------------
| An array of documentation paths to merge with the main documentation.
|
| For example, if your additional documentation is located in storage/additional_docs/example.json
| you need to add 'storage/additional_docs/example.json' to additional_paths, if your additional
| documentation is located in the root directory of your project you need to add the filename to additional_paths
*/
'additional_paths' => [],

Expand Down
2 changes: 1 addition & 1 deletion src/Services/SwaggerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public function getDocFileContent()
$additionalDocs = config('auto-doc.additional_paths', []);

foreach ($additionalDocs as $filePath) {
$fileContent = json_decode(file_get_contents($filePath), true);
$fileContent = json_decode(file_get_contents(base_path($filePath)), true);

$paths = array_keys($fileContent['paths']);

Expand Down