afs:output - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.9
Category
Reference Guide

Role

Selects the output mode for the reply feed.

For more information, see Output Formats.

Status

Optional. The default value is json. It can also be set to:

  • application/x-suggestions+json which is an alias for json
  • xml (XSD: ACP XML Output XSD)
  • application/suggestions+jsonp;method=myDocument.myMethod which pads the JSON output into myDocument.myMethod

Example

afs:output=antidot/suggestions+jsonp;method=document.process
(Pad JSON output into document.process)

In order to improve readability, in the previous example, the "+" character is not encoded. In order to use "+" in a URI, it must be encoded into "%2B".