Sanity
A client library for the Sanity CMS API.
Installation
The package can be installed by adding sanity to your list of dependencies in mix.exs:
def deps do
[
{:sanity, "~> 0.10.0"}
]
endThe docs can be found at https://hexdocs.pm/sanity.
Examples
Sanity.query(~S'*[_type == "product"]')
|> Sanity.request(project_id: "abc", dataset: "production")Supported endpoints
- Assets
- Doc
- Export
- History
- Listen
- Mutate
- Projects
- Query