Find a template
Changed onLists the official templates that are published now. With q, returns the best matches (at most 3, matched: true); without q or when nothing matches, returns every template with matched: false. Each item gives sourceUrl (the HTML source as plain text), demoUrl, pageUrl, data (what it saves and who sees it), useWhen, copies (pages published from it) and the state its copy needs. To publish a copy, follow publish: change the source as the user asks, POST it to the item's publishUrl with the item's state, then give the user link and manageUrl (private).
Request
- Base URLhttps://brewpage.app
- Authnone required
Query parameters
Free text, percent-encoded: a few English words for the page the user wants, e.g. wedding rsvp. At most 200 characters; the first 12 words count. An invalid percent escape answers 400.
Response
Templates and the publish recipe
Official BrewPage templates for a request, each with its source and the state its copy needs, plus one publish recipe
The searched q; absent without a non-blank q
true: items are the best matches for q, at most 3, best first; false: no q or no match, items lists every template
Templates; empty only while no template is published
How to publish a copy of any item
Changes
- info
added the optional property
items/items/copiesto the response with the status - info
added the optional property
items/items/publishUrlto the response with the status
- info
- info
endpoint added
- info