Open DMARC Analyzer is an Open Source DMARC Report Analyzer to be used with DMARC reports that have been parsed by John Levine's rrdmarc script or techsneeze's dmarcts-report-parser.
This PR adds a new page called 'json' which outputs the data on the dashboard as JSON. It respects all existing URI parameters such as domain and date range.
Type of change
[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update
How Has This Been Tested?
I have tested this new PR on the current v2-dev branch with live data and it works perfectly and produces no errors or warnings.
Test Configuration:
OS: Ubuntu
OS Kernel Version: 5.15.0
WebServer: Nginx
WebServer Version: 1.18.0
PHP Version: 8.1
SQL Variant: MariaDB
SQL Version: 15.1
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation Not applicable
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works Not applicable
[X] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules Not applicable
[X] I have checked my code and corrected any misspellings
Added JSON output of data
Description
This PR adds a new page called 'json' which outputs the data on the dashboard as JSON. It respects all existing URI parameters such as domain and date range.
Type of change
How Has This Been Tested?
I have tested this new PR on the current v2-dev branch with live data and it works perfectly and produces no errors or warnings.
Test Configuration:
Checklist:
I have made corresponding changes to the documentationNot applicableI have added tests that prove my fix is effective or that my feature worksNot applicableAny dependent changes have been merged and published in downstream modulesNot applicable