beautypg.com

Output format xslt stylesheet, Deleting a front end, Retrieving the output format xslt stylesheet – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 46

background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

46

Deleting a Front End

To delete a front end from a search appliance, send an authenticated DELETE request to the frontend
feed URL:

http://Search_Appliance:8000/feeds/frontend

Output Format XSLT Stylesheet

Retrieve and update XSLT template and other output format related properties for each language of
each front end using the frontend entry of the outputFormat feed.

Use the following properties to retrieve an output format stylesheet.

Note: For an update action, the restoreDefaultFormat content is mutually exclusive from the
styleSheetContent. For each update action, you can restore the output format style sheet XSLT back
to its original default values, or set the style sheet XSLT to a custom format, or neither, but not both.

Retrieving the Output Format XSLT Stylesheet

To get the output format stylesheet information for a search appliance, send an authenticated GET
request to the outputFormat feed URL:

http://Search_Appliance:8000/feeds/outputFormat/Front_End?language=Language_Code

Parameter

Description

language

Specify a language for the output format properties that you want to
retrieve. Each front end can contain multiple languages, and each language
has its own output format properties. Each front end + language can have
its own XSLT stylesheet. The language parameter enables you to retrieve
and update a stylesheet for a front end associated with a language.

Administrators who use the Admin Console set the language in their
browser and the Admin Console then displays in that language (if the
Admin Console has been translated into that language). Hence the
language parameter for the outputFormat feed is limited to the values to
which the Admin Console is translated.

Property

Description

isDefaultLanguage

1 if the designated language is the default language for the specified
front end, 0 if not.

isStyleSheetEdited

0 if the style sheet has default values, 1 if the style sheet has been
edited.

language

In a retrieving operation, language is determined by the language
specified by query parameter. In an updating operation, language is
passed as an entry property to specify the language of the output
stylesheet.

restoreDefaultFormat

1 if you want to restore a custom-edited XSLT stylesheet to contain
default values, a 0 value has no effect.

styleSheetContent

The output format of the XSLT code.