This page describes how to create URLs which either generate a specific document or link to a pre-expanded or pre-populated brochure creation page
URLs requesting any document can be systematically built up following a few quick steps:
| Name | Slug | Section ID | Abstract | Mandatory |
|---|---|---|---|---|
| {{s.name}} | {{s.slug}} | {{s.id}} | {%if s.abstract%}x{%endif%} | {%if s.mandatory%}x{%endif%} |
http://binder.ebrochures.org/brochure/doc-name/api/?
http://bpp.ebrochures.org/brochure/law/api/?sections=short-programmes,masters-degrees
{%endif%}
{%endfor%}
http://bpp.ebrochures.org/brochure/law/api/?sections=short-programmes,masters-degrees&title=BPP Law Brochure&subtitle=Customised for John Smith
inline - return PDF content inline (open in pdf viewer inside browser) - this is the default.attachment - return PDF content as an attachmenthtml - returns a html page with a link to the documenturl (lower case) - returns text of the document URLflip_book - returns a redirect to flash 'flipbook' version of the documentemail - attaches the document to an email and sends it. Takes the following
additional parameters:<email_to> (required) a single email address to send to.<subject> (optional) email subject line; defaults to 'You have been sent an
eBrochure'.<body> (optional) email body text; defaults to 'Your eBrochure is attached'.<email_from> (optional) if set, the subject line will read 'x has sent you an
eBrochure' - this option will override any prior definition of the subject fieldhttp://bpp.ebrochures.org/brochure/law/api/?sections=short-programmes,masters- degrees&title=BPP Law Brochure&subtitle=Customised for John Smith&disposition=email&email_to=john.smith@sampleemail.com&subject=John's BPP brochure
Similarly, URLs can be constructed which link to the brochure creation page and define its initial appearance:
http://bpp.ebrochures.org/brochure/law/?
http://bpp.ebrochures.org/brochure/law/?expanded=short-programes,masters-degrees
http://bpp.ebrochures.org/brochure/law/?expanded=short-programmes,masters-degrees§ions=summer-school,ma-law-with-business
http://bpp.ebrochures.org/brochure/law/?expanded=short-programmes,masters-degrees§ions=summer-school,ma-law-with-business&download_display=download,flip_book&download_option=flip_book
http://<domain>/brochure/<documentName>/help/
This page. General documentation; also lists the available sections
for <documentName>
http://<domain>/brochure/<documentName>/sections
Returns a plain text JSON listing of the available sections for <documentName>
| Name | Slug | Section ID | Abstract | Mandatory |
|---|---|---|---|---|
| {{s.name}} | {{s.slug}} | {{s.id}} | {%if s.abstract%}x{%endif%} | {%if s.mandatory%}x{%endif%} |