CUB-113: Implement Core CRUD API Endpoints #40
Reference in New Issue
Block a user
Delete Branch "agent/dex/CUB-113-crud-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements the full layered architecture (handler → service → repository) for the Extrudex Go backend.
Endpoints
/api/materials/api/filaments/api/filaments/{id}/api/filaments/api/filaments/{id}/api/filaments/{id}/api/printers/api/print-jobs/api/usage-logsFeatures
{"error": "...", "code": N}?limit=and?offset=deleted_atrather than removing rowsChecks
go build ./...→ PASSgo vet ./...→ PASS- Add dtos package with request/response structs - Add repositories: Material, Filament, Printer, PrintJob, UsageLog - Add services: FilamentService, PrinterService, PrintJobService - Add handlers for all 5 resources with consistent error responses - Wire all endpoints into Chi router under /api - Validation on POST/PUT filament endpoints - Filter/pagination support on list endpoints - Soft-delete for filaments (DELETE /api/filaments/{id}) - go build ./... && go vet ./... → PASSAPPROVED
Pull request closed