Page MenuHomeDevCentral

Phase 2: Backend refactor with full CRUD API, expanded schema, and JWT auth
ClosedPublic

Authored by ieli on Sun, Feb 15, 11:39.
Tags
None
Referenced Files
F24368711: D3963.diff
Mon, Feb 16, 03:01
F24367909: D3963.id10271.diff
Mon, Feb 16, 01:45
F24367705: D3963.diff
Mon, Feb 16, 01:30
Subscribers
None
Tokens
"Y So Serious" token, awarded by dereckson.

Details

Summary

Database:

  • Expand schema with incident_update, incident_service, maintenance, and maintenance_service tables
  • Add ordering and timestamp columns to existing tables

Backend:

  • Add full CRUD endpoints for services, incidents, and maintenance
  • Add incident lifecycle (create → update → resolve) with update tracking
  • Add JWT authentication middleware for admin/write operations
  • Add start/dev scripts to package.json
  • Remove unused Sequelize dependency

API:

  • New RESTful routes (/api/services, /api/incidents, /api/maintenances)
  • Legacy endpoints preserved for backward compatibility
  • Public GET endpoints, authenticated POST/PUT/DELETE

Diff Detail

Repository
rSP ServPulse
Lint
Lint Not Applicable
Unit
Tests Not Applicable