Recipes
Recipes are practical, focused guides to solving specific problems with RustAPI.
Format
Each recipe follows a simple structure:
- Problem: What are we trying to solve?
- Solution: The code.
- Discussion: Why it works and what to watch out for.
Table of Contents
- Creating Resources
- Pagination & HATEOAS
- OpenAPI & Schemas
- JWT Authentication
- CSRF Protection
- Database Integration
- Testing & Mocking
- File Uploads
- Background Jobs
- Custom Middleware
- Real-time Chat
- Server-Side Rendering (SSR)
- AI Integration (TOON)
- Production Tuning
- Response Compression
- Resilience Patterns
- Graceful Shutdown
- Time-Travel Debugging (Replay)
- Deployment
- HTTP/3 (QUIC)
- gRPC Integration
- Automatic Status Page