feat: implement filament and spool preset services with CRUD operations

- Add `FilamentService` for managing filament inventory, including creation, retrieval, updating, and deletion of filaments.
- Introduce `SpoolPresetService` for handling spool presets, allowing users to create, update, and delete their custom presets.
- Create domain models for `Filament` and `SpoolPreset` with necessary fields and methods.
- Define repository interfaces for filament and spool preset persistence.
- Implement application configuration management from environment variables.
- Set up error handling with a centralized `AppError` type.
- Build the Axum router with public and protected routes for user authentication and resource management.
This commit is contained in:
2026-03-14 09:38:28 -03:00
parent c90d2f920b
commit abdc2fe8ce
67 changed files with 7832 additions and 0 deletions
@@ -0,0 +1,32 @@
info:
name: Update Filament
type: http
seq: 4
http:
method: PUT
url: http://0.0.0.0:8080/api/v1/filaments/{{filament_id}}
body:
type: json
data: |-
{
"material": "PETG",
"brand": "Bambu",
"model": "PETG Basic",
"color_hex": "#33A1FF",
"spool_preset_id": "{{preset_id}}",
"total_weight_g": 1000,
"temp_hotend_c": 240,
"temp_bed_c": 70,
"flow_factor_pct": 1.0,
"notes": "Atualizado"
}
auth:
type: bearer
token: "{{access_token}}"
settings:
encodeUrl: true
timeout: 0
followRedirects: true
maxRedirects: 5