REST APIs for Output management id175UB30E05Z
The following REST APIs are available for managing output in AEM Guides.
Get all output presets for a DITA map get-output-presets-dita-map
A POST method that retrieves all output presets configured for a DITA map.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operationgetalloutputs.Note: The value is case-insensitive.
sourcePathResponse values:
Returns an array of JSON Output Preset objects, each object containing the following elements:
outputNameoutputType- AEMSITE
- HTML5
- EPUB
- CUSTOM
outputTitleditaValPathListtargetPathsiteNametemplatePathsearchScopelocal.generateTOCgenerateBreadcrumbsoverwriteStrategypdfGenerator- DITAOT
- FMPS
DitaValPath element is no longer supported.Create output preset
A POST method that creates a new output preset for a DITA map.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operationcreateoutput.Note: The value is case-insensitive.
sourcePathoutputTitleNote: When a new output preset is created, the back-end system drives a unique name for the output preset from the given title.
outputType- AEMSITE
- HTML5
- EPUB
- CUSTOM
Response values:
outputNameoutputTitle parameter.Save output preset
A POST method that saves changes made in an output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operationsaveoutput.Note: The value is case-insensitive.
sourcePathoutputObjoutputObj.outputName property contains the name of the output preset that is to be updated. For the format of the JSON object, see the Response values table in Get all output presets for a DITA map.Response values:
Returns a HTTP 200 (Successful) response.
Get a specific output preset
A POST method that retrieves an existing output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operationgetoutput.Note: The value is case-insensitive.
sourcePathoutputNameResponse values:
outputNameoutputType- AEMSITE
- HTML5
- EPUB
- CUSTOM
outputTitleditaValPathListtargetPathsiteNamesiteTitletemplatePathsearchScopelocal.generateTOCgenerateBreadcrumbsoverwriteFilespdfGenerator- DITAOT
- FMPS
DitaValPath element is no longer supported.Generate output
A GET method that generates output using one or more output presets.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
operationGENERATEOUTPUT.Note: The value is case-sensitive.
sourceoutputNameResponse values:
Returns a HTTP 200 (Successful) response.
Generate incremental output
A GET method that generates incremental output for an AEM Site using one or more output presets.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
operationINCREMENTALPUBLISH.Note: The value is case-sensitive.
contentPath{
{
"ditamap":
"/content/dam/sample/sample.ditamap",
"topics": [
"/content/dam/sample/topic1.xml",
"/content/dam/sample/topic2.xml"
],
"fullMaps": [
"/content/dam/sample/submap.ditamap"
],
"maps": [
"/content/dam/sample/keyspace.ditamap"
],
"outputs": [
"aemsite"
]
}
}
- The
ditamapattribute takes the absolute path of the DITA map that is used to generate the output. - The
topicsattribute takes an array of topics that are updated and need to be republished. - The
fullMapsattribute contains path of the map files (like chunked submaps) that are needed along with their topics for incremental output generation. - The
mapsattribute contains path of the map files (for resolving keyspace references) that are extracted on the disk without topics. - The
outputsattribute takes an array of output preset names that are used to generate the output.
Response values:
Returns a HTTP 200 (Successful) response.
Delete output preset
A POST method that deletes an output preset.
Request URL:
http://<aem-guides-server>: <port-number>/bin/publishlistener
Parameters:
:operationdeleteoutput.Note: The value is case-insensitive.
sourcePathoutputNameResponse values:
Returns a HTTP 200 (Successful) response.