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: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"nunomaduro/collision": "^8.7",
"php-open-source-saver/jwt-auth": "^2.7",
"psr/simple-cache": "^3.0",
"ronasit/laravel-helpers": "^3.3",
"ronasit/laravel-swagger": "^3.1",
"ronasit/laravel-helpers": "^3.5",
"ronasit/laravel-swagger": "^3.2",
"spatie/laravel-google-cloud-storage": "^2.3",
"spatie/laravel-ignition": "^2.8",
"symfony/http-client": "^7.2.0",
Expand Down
49 changes: 25 additions & 24 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 38 additions & 2 deletions config/auto-doc.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@
'204' => 'Operation successfully done',
'404' => 'This entity not found',
],

/*
|--------------------------------------------------------------------------
| Error Template
|--------------------------------------------------------------------------
|
| You can use your custom description view for errors.
*/
'error' => 'auto-doc::error',
],

/*
Expand All @@ -121,7 +130,7 @@
|--------------------------------------------------------------------------
|
| Tool for rendering API documentation in HTML format.
| Available values: "swagger", "elements", "rapidoc"
| Available values: "swagger", "elements", "rapidoc", "scalar"
*/
'documentation_viewer' => env('SWAGGER_SPEC_VIEWER', 'swagger'),

Expand Down Expand Up @@ -184,5 +193,32 @@
'development',
],

'config_version' => '2.8',
/*
|--------------------------------------------------------------------------
| Paratests
|--------------------------------------------------------------------------
|
| The config for parallel tests execution setup
*/
'paratests' => [
'tmp_file_lock' => [
/*
|--------------------------------------------------------------------------
| Maximum attempts count, int
|--------------------------------------------------------------------------
| The maximum number of attempts to append data to a temporary documentation file
*/
'max_retries' => 20,

/*
|--------------------------------------------------------------------------
| Wait time between attempts, microseconds
|--------------------------------------------------------------------------
| The waiting time between attempts to write to the temporary documentation file while the file is locked
*/
'wait_time' => 500,
],
],

'config_version' => '2.10',
];
8 changes: 4 additions & 4 deletions tests/fixtures/SettingTest/get_public_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=1",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=1",
"prev": null,
"next": null
},
Expand All @@ -44,7 +44,7 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
Expand All @@ -54,7 +54,7 @@
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 10,
"to": 3,
"total": 3
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/SettingTest/get_setting_by_key.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=1",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=1",
"prev": null,
"next": null
},
Expand All @@ -31,7 +31,7 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
Expand All @@ -41,7 +41,7 @@
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 10,
"to": 1,
"total": 1
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/SettingTest/get_settings_check_order.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=1",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=1",
"prev": null,
"next": null
},
Expand All @@ -51,7 +51,7 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
Expand All @@ -61,7 +61,7 @@
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 10,
"to": 4,
"total": 4
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/SettingTest/search_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=1",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=1",
"prev": null,
"next": null
},
Expand All @@ -51,7 +51,7 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
Expand All @@ -61,7 +61,7 @@
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 4,
"to": 4,
"total": 4
Expand Down
8 changes: 4 additions & 4 deletions tests/fixtures/SettingTest/search_complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=1",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=1",
"prev": null,
"next": null
},
Expand All @@ -31,7 +31,7 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
Expand All @@ -41,7 +41,7 @@
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 1,
"to": 1,
"total": 1
Expand Down
14 changes: 7 additions & 7 deletions tests/fixtures/SettingTest/search_per_page.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
}
],
"links": {
"first": "http:\/\/localhost\/v0.1\/settings?page=1",
"last": "http:\/\/localhost\/v0.1\/settings?page=2",
"first": "https:\/\/localhost\/v0.1\/settings?page=1",
"last": "https:\/\/localhost\/v0.1\/settings?page=2",
"prev": null,
"next": "http:\/\/localhost\/v0.1\/settings?page=2"
"next": "https:\/\/localhost\/v0.1\/settings?page=2"
},
"meta": {
"current_page": 1,
Expand All @@ -32,22 +32,22 @@
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=1",
"url": "https:\/\/localhost\/v0.1\/settings?page=1",
"label": "1",
"active": true
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=2",
"url": "https:\/\/localhost\/v0.1\/settings?page=2",
"label": "2",
"active": false
},
{
"url": "http:\/\/localhost\/v0.1\/settings?page=2",
"url": "https:\/\/localhost\/v0.1\/settings?page=2",
"label": "Next »",
"active": false
}
],
"path": "http:\/\/localhost\/v0.1\/settings",
"path": "https:\/\/localhost\/v0.1\/settings",
"per_page": 2,
"to": 2,
"total": 4
Expand Down
Loading
Loading