api-manager
api-manager copied to clipboard
Transaction Counter Improvements
Problem
Following changes are suggested during the [DEMO] Transaction Counter Improvement.
Solution
- [x] Simplify configuration settings and change the configuration title in the transaction counter.
- [x] Update the permission logic to restrict transaction count visibility to other users. Only the super admin can view. Implementing a 403 response for different users. Other users should not be able to retrieve data by invoking an API.
- UI
- [x] Adjust the UI layout to align title, buttons, and the transaction count.
- [x] Add a new button for viewing the data alongside the download button.
- [x] Rename the download button text from "Download PDF" to "Download Report."
- [x] Add a logo to the report and improve the appearance of the report.
- [ ] Hide the UI components when they are disabled in the configuration settings.
Affected Component
APIM
Version
4.4.0
Implementation
No response
Related Issues
No response
Suggested Labels
No response
Original feature: https://github.com/wso2/api-manager/issues/3017
[work log]
following changes are done.
- Rename the download button text from "Download PDF" to "Download Report."
- Adjust the UI layout to align the title, buttons, and transaction count.
- Improve the report's appearance, add the logo and a footer.
Add a new button to view the data. After selecting the dates, click the view button to get the count.
Added most of the configurations as default values and fixed the configuration title. Now the deployment.toml configurations should be defined as follows.
[apim.transaction_counter]
enable = true
server_id = "Gateway1"