[Cases] Refactor case client #94187
Labels
Feature:Cases
Cases feature
Team: SecuritySolution
Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc.
Team:Threat Hunting
Security Solution Threat Hunting Team
Theme: rac
label obsolete
The cases plugin needs to support a contract between plugins in addition to a REST API to interface with the UI. To avoid duplicating the functionality in both the REST APIs and the contract, we'll want to move the functionality to a common place. This common place is the
client
.Refactor the case client to have all the HTTP routes implementation. This removes duplication of the functionality and allows a single place to implement the permissions check for each route.
Also, all unit tests should be converted to integration tests as part of the refactoring.
Routes to migrate:
The text was updated successfully, but these errors were encountered: