View Source API Reference Carve v0.5.0
Modules
Carve simplifies JSON API development in Phoenix by automatically formatting endpoint outputs with associated links. Define resource relationships with a simple DSL, and let Carve handle link inclusion and query-based filtering, reducing boilerplate and ensuring consistent, flexible API responses.
Request-scoped cache for Carve to prevent redundant data fetching within a single render. Each render operation gets its own isolated cache keyed by a unique ref. TTL defaults to 500ms. Increase if requests involve slow queries. The cache is cleared at end of each render regardless of TTL.
Handles configuration for Carve.
Carve.HashIds provides functionality for encoding and decoding IDs using HashIds.
Carve.View provides a DSL for quickly building JSON API views in Phoenix applications.