Add ComplianceFrameworksController for JSON export
What does this MR do and why?
Add ComplianceFrameworksController for JSON export
This branch adds a controller to represent a compliance framework and its related requirements and controls in JSON format. This will be used to download a compliance framework in JSON for sharing or re-using.
References
End goal: Compliance Framework upload/download templates We want to create a repository of framework templates and the ability to upload/download them to a Compliance Framework through an API and UI
This controller will be used by the UI for this issue: Download framework UI
Screenshots or screen recordings
This change doesn't create any UI changes.
How to set up and validate locally
- Go here: http://localhost:3000/groups/toolbox/-/security/compliance_dashboard/frameworks and create a framework
- Keep track of the framework ID
- Go here: http://localhost:3000/groups/toolbox/-/security/compliance_dashboard/frameworks/1.json replacing 1 with your framework ID.
- Verify that there's JSON to represent your framework.
Edited by Dakota Dux