What problem does it solve?
This Skill streamlines the development and maintenance of API endpoints within a Stacks application, reducing the complexity of routing, middleware management, and OpenAPI documentation.
Core Features & Use Cases
- Unified Routing: Define and manage API routes with support for middleware, versioning, and automatic OpenAPI generation.
- Fluent HTTP Client: Utilize the built-in fetcher for robust, type-safe API communication with built-in support for authentication and file uploads.
- Resource Transformation: Easily transform database models into consistent JSON responses using Laravel-style JsonResource classes.
- Use Case: Quickly scaffold a new authenticated API endpoint by defining a route, creating an Action class, and applying the Auth middleware to secure the request.
Quick Start
Use the stacks-api skill to generate a new API route and corresponding Action class for handling user profile updates.