wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Add frontend http client

Open Desvelao opened this issue 5 months ago • 3 comments

Description

This pull request adds a http client to the wazuh-core plugin and expose it to manage the API requests that is a composition of old services:

  • WzRequest
  • GenericRequest
  • ApiCheck
  • WzAuthentication

Moreover,

  • Components
    • TableData (generic table component based on a implementation of wazuh plugin)
    • ServerTable (based on TableWzAPI of wazuh plugin)
  • Hooks
    • useStateStorage: uses the localStorage and sessionStorage to persist the runtime data

Issues Resolved

#6959

Evidence

Test

Check List

  • [ ] All tests pass
    • [ ] yarn test:jest
  • [ ] New functionality includes testing.
  • [ ] New functionality has been documented.
  • [ ] Update CHANGELOG.md
  • [x] Commits are signed per the DCO using --signoff

Desvelao avatar Sep 19 '24 15:09 Desvelao