Skip to main content

Module snippets

Module snippets 

Source
Expand description

GET /api/v2/snippets/ + GET /api/v2/snippets/{id}/.

Read-only snippet access for headless consumers, mirroring the pages / images / documents endpoints. Snippets are the reusable content rows authors manage under the admin “Library” (crate::snippet::Snippet); the API exposes their title, slug, body_markdown, and typed data. Filter to one type with ?type=<type_name>.

Structs§

SnippetListQuery

Functions§

detail
GET /api/v2/snippets/{id}/
list
GET /api/v2/snippets/