Phase 8: Visitor Management - Visitor/VisitorLog/AccessZone models - Check-in/out with badge generation - Zone occupancy tracking - Kiosk and management pages Phase 9: Messaging & Communication - Announcements with priority levels - Acknowledgement tracking - Shift notes for team handoffs - AnnouncementBanner component Phase 10: Compliance & Audit Trail - Immutable AuditLog model - Document versioning and approval workflow - Acknowledgement tracking for SOPs - CSV export for audit logs Phase 11: Accessibility & i18n - WCAG 2.1 AA compliance utilities - react-i18next with EN/ES translations - User preferences context (theme, font size, etc) - High contrast and reduced motion support Phase 12: Hardware Integration - QR code generation for batches/plants/visitors - Printable label system - Visitor badge printing Phase 13: Advanced Features - Environmental monitoring (sensors, readings, alerts) - Financial tracking (transactions, P&L reports) - AI/ML insights (yield predictions, anomaly detection)
35 lines
1 KiB
Markdown
35 lines
1 KiB
Markdown
# Facility Layout API Reference
|
|
|
|
## Base URL
|
|
|
|
`/api/layout`
|
|
|
|
## Properties
|
|
|
|
- `GET /properties`: Get all properties with full Building -> Floor -> Room hierarchy.
|
|
- `POST /properties`: Create a new property. Automatically creates "Main Building" and "Floor 1".
|
|
|
|
## Buildings
|
|
|
|
- `POST /buildings`: Create a new building under a property.
|
|
|
|
## Floors
|
|
|
|
- `GET /floors/:id`: Get specific floor with its rooms and sections.
|
|
- `POST /floors`: Create a new floor.
|
|
- `POST /floors/:id/layout`: Bulk save layout (upsert/delete rooms) for a floor.
|
|
|
|
## Rooms
|
|
|
|
- `POST /rooms`: Create a single room.
|
|
- `PUT /rooms/:id`: Update room details (position, size, type).
|
|
- `DELETE /rooms/:id`: Delete a room.
|
|
|
|
## Sections
|
|
|
|
- `POST /sections`: Create a section (rack/table) within a room. Auto-generates positions.
|
|
- `GET /sections/:id`: Get section details including individual positions and plant assignments.
|
|
|
|
## Positions
|
|
|
|
- `GET /positions/:id/address`: Generate the full hierarchical address string (e.g., `WOLF.MAIN.F1.VEG.T1.R1.C1`) for a position.
|