Files API
This API provides a few endpoints for working with individual files.
List all files
GET {logViewer}/api/files
Lists all log files found by the Log Viewer. It avoid the directory structure and lists all log files in a flat array.
Download a file
GET {logViewer}/api/files/{file.identifier}/download
Download the log file. You can find the file.identifier
by looking up the available folders from the List all files route.
Delete a file
DELETE {logViewer}/api/files/{file.identifier}
Delete the log file. You can find the file.identifier
by looking up the available folders from the List all files route.
Clear the cache of a file
POST {logViewer}/api/files/{file.identifier}/clear-cache
Clear the cache of the log file. You can find the file.identifier
by looking up the available folders from the List all files route.
Clear the cache of all files
POST {logViewer}/api/clear-cache-all
Clears the cache of all log files found by Log Viewer.
Delete multiple files
POST {logViewer}/api/delete-multiple-files
Provide an array of file.identifier
values which you'd like to delete. Here's an example request body:
{ "files": [ "s3sda42t-laravel.log", "2kh3jbhs-laravel-2022-12-01.log", ]}