View Source Sanity
A client library for the Sanity CMS API.
installation
Installation
The package can be installed by adding sanity
to your list of dependencies in mix.exs
:
def deps do
[
{:sanity, "~> 1.0"}
]
end
examples
Examples
Sanity.query(~S'*[_type == "product"]')
|> Sanity.request(project_id: "abc", dataset: "production")
related-projects
Related Projects
cms
- An experimental library for syncing content from any headless CMS to ETS tables.sanity_components
- Phoenix components for rendering images and portable text.sanity_sync
- For syncing content from Sanity CMS to Ecto.
supported-endpoints
Supported endpoints
- [x] Assets
- [x] Doc
- [ ] Export
- [ ] History
- [ ] Listen
- [x] Mutate
- [ ] Projects
- [x] Query