Changes

Jump to: navigation, search

Umlaut partial html API

586 bytes added, 16:22, 19 June 2012
no edit summary
=WARNING: This is Outdated Documentation!!!!=
 
'''THIS IS OUTDATED DOCUMENTATION''' See new Umlaut documentation at http://github.com/team-umlaut/umlaut/wiki
---------
 
The Umlaut partial HTML API is meant for when you want Umlaut to generate HTML, but you want to embed that HTML on an external page. The API will deliver sections of generated HTML, that you can include elsewhere.
[[Category:Umlaut]]
If you plan to include it via javascript, you will likely find it even more convenient to use the [[Umlaut partial html API javascript helper]], saving you even more work. The javascript helper uses the API behind the scenes.  = Accessing the API = Supplied via the resolve/partial_html_sections actions. Instead of accessing the ordinary resolver base URL, you replace "resolve?" in your query with "resolve/partial_html", eg http://umlaut.university.edu/resolve/partial_html? . You send the OpenURL context object the same as you would for an ordinary resolve action, in URL or POST XML, etc.  By default, the API returns XML. To return json instead, include:  &umlaut.response_format=json To return jsonp, wrapped in a javascript procedure call:
j1hlfZ <a href="http://efoepzhfodtv&umlaut.com/">efoepzhfodtv</a>, [urlresponse_format=http://hyluftmilfktjsonp&umlaut.com/]hyluftmilfkt[/url], [linkjsonp=http://ldewytyquejj.com/]ldewytyquejj[/link], http://mxdkipakuklf.com/desiredJavascriptFunctionName
= Response =

Navigation menu