Returns a useable form from its id, as described in the RESTful description of the API. For instance: api.form("everything") works on every repository (as "everything" exists by default) You can then chain the calls: api.form("everything").query('[[:d = at(document.id, "UkL0gMuvzYUANCpf")]]').ref(ref).submit()
Fetches data used to construct the api client, from cache if it's present, otherwise from calling the prismic api endpoint (which is then cached).
Retrieve the document with the given bookmark
Retrieve the document with the given id
Retrieve multiple documents from an array of id
Retrieve the document with the given uid
Retrieve quick routes definitions
Retrieve the singleton document with the given type
The ID of the master ref on this prismic.io API. Do not use like this: searchForm.ref(api.master()). Instead, set your ref once in a variable, and call it when you need it; this will allow to change the ref you're viewing easily for your entire page.
Parses and returns the /api document. This is for internal use, from outside this kit, you should call Prismic.Api()
The JSON document responded on the API's endpoint
Return the URL to display a given preview
Query the repository
Retrieve the document returned by the given query
Returns the ref ID for a given ref's label. Do not use like this: searchForm.ref(api.ref("Future release label")). Instead, set your ref once in a variable, and call it when you need it; this will allow to change the ref you're viewing easily for your entire page.
Cleans api data from the cache and fetches an up to date copy.
Optional callback function that is called after the data has been refreshed
Fetch a URL corresponding to a query, and parse the response as a Response object
JSON documents to Response object
Generated using TypeDoc
The current experiment, or null