Open-DMARC-Analyzer icon indicating copy to clipboard operation
Open-DMARC-Analyzer copied to clipboard

Added JSON output of data

Open MatthewHana opened this issue 1 year ago • 0 comments
trafficstars

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

  • [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

MatthewHana avatar Mar 24 '24 12:03 MatthewHana