View Source API Reference Carve v0.6.1

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.

Batched cache warm-up for views that define cache_many.

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, stored in the render process's dictionary — a render is single-process, so the cache never needs to cross process boundaries. The cache is cleared at the end of each render.

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.