site
site copied to clipboard
Cookbook & recipe ideas
Placeholder issue for things we would include in a cookbook.
- Using Mirage with JSON:API
- Delaying db writes
- UUIDs instead of auto incrementing ID. Also, making UUIDs application wide.
- Handling relationships with
/user/:userId/posts
style urls - Delayed responses and server timeouts
- Using Mirage for demos (mention changing the timing)
- Intercepting network requests and modifying some of the JSON
- Router handlers with query params
- Binary data
- Streaming responses
- Persisting the database locally so it survives reloads
- Including all relationships by default
- Shorthand nested resources
server.get('/articles/:id/comments')