Skip to content

P0: Standardize API response envelope #82

Description

@Kinin-Code-Offical

API responses are inconsistent. All endpoints must return a standardized JSON object.

Acceptance Criteria:

  • All API endpoints MUST return a JSON object with the structure: { success: bool, message: string, data: object|array|null }.
  • For list responses, the data object should contain an items array: data: { items: [...] }.
  • Refactor at least two key endpoints (e.g., getallclients.php, getallpolicies.php) to use the new envelope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendRelated to the PHP backendpriority: P0Highest priority; stabilization taskstype: choreMaintenance or refactoring

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions