mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 19:21:33 +02:00
- New APIBrowser component with full OpenAPI schema integration
- Fetches and parses /openapi.json automatically
- Groups endpoints by API tags (printers, archives, settings, etc.)
- Expandable endpoint sections with color-coded method badges
- Path parameter, query parameter, and JSON body editors
- Auto-populates request body with schema examples
- Live API request execution with response display
- Response shows status code, timing, and formatted JSON
- Copy response button with clipboard fallback
- Search to filter endpoints across all categories
- Expand All / Collapse All buttons
- Link to Swagger UI (/docs)
- Two-column layout for API Keys tab
- Left: API key management + webhook documentation
- Right: API Browser with dedicated test key input
- Parameter validation
- Shows warning for missing required parameters
- Validates before sending requests to avoid 422 errors
- UX improvements
- "Use in API Browser" button on newly created keys
- Responsive layout (stacked on mobile, side-by-side on xl+)
44 lines
894 B
Python
44 lines
894 B
Python
from backend.app.schemas.archive import (
|
|
ArchiveBase,
|
|
ArchiveResponse,
|
|
ArchiveUpdate,
|
|
ProjectPageImage,
|
|
ProjectPageResponse,
|
|
)
|
|
from backend.app.schemas.printer import (
|
|
PrinterBase,
|
|
PrinterCreate,
|
|
PrinterResponse,
|
|
PrinterStatus,
|
|
PrinterUpdate,
|
|
)
|
|
from backend.app.schemas.smart_plug import (
|
|
SmartPlugBase,
|
|
SmartPlugControl,
|
|
SmartPlugCreate,
|
|
SmartPlugResponse,
|
|
SmartPlugStatus,
|
|
SmartPlugTestConnection,
|
|
SmartPlugUpdate,
|
|
)
|
|
|
|
__all__ = [
|
|
"PrinterBase",
|
|
"PrinterCreate",
|
|
"PrinterUpdate",
|
|
"PrinterResponse",
|
|
"PrinterStatus",
|
|
"ArchiveBase",
|
|
"ArchiveUpdate",
|
|
"ArchiveResponse",
|
|
"ProjectPageResponse",
|
|
"ProjectPageImage",
|
|
"SmartPlugBase",
|
|
"SmartPlugCreate",
|
|
"SmartPlugUpdate",
|
|
"SmartPlugResponse",
|
|
"SmartPlugControl",
|
|
"SmartPlugStatus",
|
|
"SmartPlugTestConnection",
|
|
]
|