- 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.
37 lines
613 B
YAML
37 lines
613 B
YAML
info:
|
|
name: List Filaments
|
|
type: http
|
|
seq: 1
|
|
|
|
http:
|
|
method: GET
|
|
url: http://0.0.0.0:8080/api/v1/filaments
|
|
params:
|
|
- name: page
|
|
value: "1"
|
|
enabled: true
|
|
- name: per_page
|
|
value: "20"
|
|
enabled: true
|
|
- name: material
|
|
value: PLA
|
|
enabled: false
|
|
- name: brand
|
|
value: Bambu
|
|
enabled: false
|
|
- name: search
|
|
value: ""
|
|
enabled: false
|
|
- name: stock_level
|
|
value: low
|
|
enabled: false
|
|
auth:
|
|
type: bearer
|
|
token: "{{access_token}}"
|
|
|
|
settings:
|
|
encodeUrl: true
|
|
timeout: 0
|
|
followRedirects: true
|
|
maxRedirects: 5
|